File:  [WindowsNT SDKs] / q_a / samples / spincube / readme
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:29:19 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-jun-1992, HEAD
Microsoft Windows NT Build 297 06-28-1992

 Sample: Example of Creating a Custom Control Class

Summary:

The SPINCUBE sample demonstrates how to create a custom
control class that can be accessed by applications as well
as the Dialog Editor.

More Information:

SPINCUBE.DLL contains the control window procedure and the
interface functions required by the Dialog Editor (see
SPINCUBE.C), as well as the control paint routines (see
PAINT.C). SPINTEST.EXE is a small test program that loads
SPINCUBE.DLL and creates a few of the custom controls.

To test SPINCUBE with the Dialog Editor:

1.Start the editor. From the File menu, choose Open Custom.

2.Enter the path and filename of SPINCUBE.DLL.

3.Create a new dialog box and choose a custom control
  button from the control palette (lower-right corner).

4.Click the dialog box to create a SPINCUBE control.

5.Save the dialog box template.

6.Inspect the .DLG file that was created.

The following is a list of the Win32 API functions used in
this sample:

   BeginPaint     GetProp        lstrcpy        ShowWindow
   CreateSolidBr  GetStockObjec  MessageBeep    TranslateMess
   ush            t                             age
   CreateWindow   GetWindowLong  MessageBox     UpdateWindow
   DeleteObject   GetWindowRect  Polygon        
   DialogBox      InvalidateRec  PostQuitMessa  
                  t              ge
   DispatchMessa  KillTimer      Rectangle      
   ge
   DLLEntryPoint  LoadCursor     RegisterClass  
   EnableWindow   LoadIcon       RemoveProp     
   EndDialog      LoadLibrary    SelectObject   
   EndPaint       LocalAlloc     SendMessage    
   FreeLibrary    LocalFree      SetDlgItemTex  
                                 t
   GetDlgItem     LocalHandle    SetProp        
   GetDlgItemtex  LocalLock      SetTimer       
   t
   GetMessage     LocalUnlock    SetWindowLong  




unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.