Advertisement
Guest User

Untitled

a guest
Oct 28th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. #pragma once
  2.  
  3. #pragma comment(linker, \
  4.   "\"/manifestdependency:type='Win32' "\
  5.   "name='Microsoft.Windows.Common-Controls' "\
  6.   "version='6.0.0.0' "\
  7.   "processorArchitecture='*' "\
  8.   "publicKeyToken='6595b64144ccf1df' "\
  9.   "language='*'\"")
  10.  
  11. #pragma comment(lib, "ComCtl32.lib")
  12.  
  13. #include <windows.h>
  14. #include <tchar.h>
  15. #include <CommCtrl.h>
  16.  
  17. #include "resource.h"
  18.  
  19. class DialogWnd
  20. {
  21. private:
  22.     HWND hDialog;
  23.     BOOL ret;
  24.     MSG msg;
  25.  
  26. public:
  27.     DialogWnd();
  28.     DialogWnd(HINSTANCE hInstance, HINSTANCE h0, LPTSTR lpCmdLine, int nCmdShow);
  29.     ~DialogWnd();
  30.  
  31.     int WINAPI InitWindow(HINSTANCE hInstance, HINSTANCE h0, LPTSTR lpCommandLine, int nCmdShow);
  32.     static INT_PTR CALLBACK DialogProc(HWND hDialog, UINT uMsg, WPARAM wParam, LPARAM lParam);
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement