home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / icm20 / icmview / child.h < prev    next >
Text File  |  1997-09-07  |  1KB  |  37 lines

  1. //THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  2. //ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  3. //THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  4. // PARTICULAR PURPOSE.
  5. //
  6. // Copyright  1994-1997  Microsoft Corporation.  All Rights Reserved.
  7. //
  8. //  FILE:
  9. //    Child.H
  10. //
  11. //  PURPOSE:
  12. //    Include file for CHILD.C.
  13. //
  14. //  PLATFORMS:
  15. //    Windows 95, Windows NT
  16. //
  17. //  SPECIAL INSTRUCTIONS: N/A
  18. //
  19. // local definitions
  20. #define GetCurrentMDIWnd() (HWND)(SendMessage(ghWndMDIClient, WM_MDIGETACTIVE, 0, 0L))
  21.  
  22.  
  23. // For use in creating children windows
  24. #define CHILD_CLASSNAME __TEXT("ICMVIEWCHILD")
  25. #define CHILD_CBWNDEXTRA  (sizeof(LPDIBINFO))
  26. #define ICMVIEW_CBWNDEXTRA (sizeof(LPDIBINFO))
  27. #define FIRSTCHILD  1
  28. #define WINDOWMENU_POS  2
  29. #define MYWM_QUERYNEWPALETTE  WM_USER+1
  30.  
  31. //
  32. // Public functions
  33. //
  34. LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  35. DWORD CreateNewImageWindow(HANDLE hDIBInfo);
  36.  
  37.