home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / winnt / switcher / switcher.h < prev    next >
Text File  |  1995-01-11  |  1KB  |  41 lines

  1.  
  2. #define MAX_THREADS 10
  3. #define CONTROLHEIGHT 22
  4. #define DIVISOR 10         // screensize/divisor == desktop rectangle size
  5.  
  6.  
  7. void ThreadInit(LPVOID tData);      // Startup routine
  8. BOOL InitApplication (void);
  9. LONG APIENTRY WndProc(HWND, UINT, WPARAM, LPARAM); // window procedure
  10. LONG APIENTRY PreviewWndProc (HWND, UINT, WPARAM, LPARAM);
  11.  
  12. #define FIRST_STRING 901
  13. #define LAST_STRING  911
  14. #define MAXSTRLEN     30
  15. //
  16. // String table IDs
  17. //
  18. #define IDS_DESKTOPNAME     901
  19. #define IDS_CREATEERROR     902
  20. #define IDS_ERRCAPTION      903
  21. #define IDS_MEMERRCAPTION   904
  22. #define IDS_WNDSTAERROR     905
  23. #define IDS_RUNLABEL        906
  24. #define IDS_RUNLABELHOT     907
  25. #define IDS_BTNLABEL        908
  26. #define IDS_NEWLABEL        909
  27. #define IDS_NEWLABELHOT     910
  28. #define IDS_BADDESKTOP      911
  29.  
  30. // Control IDs
  31.  
  32. #define IDC_STATIC -1
  33. #define STATICWIDTH 32
  34. #define IDC_RUNME  10001
  35. #define EDITWIDTH 90
  36. #define IDC_RUNMEBTN   10002
  37. #define BTNWIDTH 72
  38. #define IDC_NEWDSKBTN  10003
  39.  
  40. #define MINWINDOWWIDTH STATICWIDTH+EDITWIDTH+2*BTNWIDTH+30
  41.