home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / input / ime / multiui / multiui.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-11  |  1.6 KB  |  53 lines

  1. /**********************************************************************/
  2. /*                                                                    */
  3. /*      MULTCON.H  - Dispatch IME Sub Task                            */
  4. /*                                                                    */
  5. /*      Copyright (c) 1995-1996  Microsoft Corporation                     */
  6. /*                                                                    */
  7. /**********************************************************************/
  8.  
  9. #define WMCOMMANDWPARAM(w) LOWORD(w)
  10.  
  11. #define DEFIMC1     0
  12. #define DEFIMC2     1
  13. #define IMC1        2
  14. #define IMC2        3
  15. #define IMCUI1      4
  16. #define IMCUI2      5
  17.  
  18. #define MAXSIZE_STR             1024
  19.  
  20. #define WNDEXTRA_NOUINOIMC      8
  21. #define WNDEXTRA_NOUIOWNIMC     12
  22. #define WNDEXTRA_OWNUIOWNIMC    16
  23.  
  24. #define MYGWL_FONT   0
  25. #define MYGWL_LPSTR  4
  26. #define MYGWL_IMC    8
  27. #define MYGWL_IMEWND 12
  28.  
  29. extern HANDLE hInst;
  30. extern HWND hWndMain;
  31.  
  32. extern HWND hWndDef1;
  33. extern HWND hWndDef2;
  34. extern HWND hWndIMC1;
  35. extern HWND hWndIMC2;
  36. extern HWND hWndIMCUI1;
  37. extern HWND hWndIMCUI2;
  38.  
  39. /* multiui.c */
  40. int  APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
  41. BOOL InitApplication(HANDLE);
  42. BOOL InitInstance(HANDLE, int);
  43. long FAR PASCAL MainWndProc(HWND, UINT, WPARAM, LPARAM);
  44.  
  45. /* dlgs.c     */
  46. BOOL FAR PASCAL AboutDlg(HWND, UINT, WPARAM, LPARAM);
  47.  
  48. /* multiwnd.c */
  49. long FAR PASCAL NoUINoIMCWndProc(HWND, UINT, WPARAM, LPARAM);
  50. long FAR PASCAL NoUIOwnIMCWndProc(HWND, UINT, WPARAM, LPARAM);
  51. long FAR PASCAL OwnUIOwnIMCWndProc(HWND, UINT, WPARAM, LPARAM);
  52. HFONT GetDefaultGUIFont(void);
  53.