elanhickler

Untitled

Dec 23rd, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifdef UNICODE
  2. #define CreateWin CreateWindowExA
  3. typedef PCSTR LPCSTR
  4. #else
  5. typedef PCSTR LPCWSTR
  6. #define CreateWin CreateWindowExW
  7. #endif
  8.  
  9. HWND MakeControl(
  10.     _In_opt_ PCSTR lpClassName,
  11.     _In_opt_ PCSTR lpWindowName,
  12.     _In_ DWORD dwStyle,
  13.     _In_ int X,
  14.     _In_ int Y,
  15.     _In_ int nWidth,
  16.     _In_ int nHeight,
  17.     _In_opt_ HWND hWndParent,
  18.     _In_opt_ HMENU hMenu,
  19.     _In_opt_ HINSTANCE hInstance,
  20.     _In_opt_ LPVOID lpParam) {
  21.     return CreateWin(0L, lpClassName, lpWindowName, dwStyle, X, Y,
  22.         nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
  23. }
  24.  
  25. HWND SWELL_MakeButton(
  26.     _In_opt_ PCSTR lpClassName,
  27.     _In_opt_ PCSTR lpWindowName,
  28.     _In_ DWORD dwStyle,
  29.     _In_ int X,
  30.     _In_ int Y,
  31.     _In_ int W,
  32.     _In_ int H,
  33.     _In_opt_ HWND hWndParent,
  34.     _In_opt_ HMENU hMenu,
  35.     _In_opt_ HINSTANCE hInstance,
  36.     _In_opt_ LPVOID lpParam) {
  37.     return MakeControl(lpClassName, lpWindowName, DWORD, X, Y, W, H, hWndParent,
  38.         hMenu, hInstance, lpParam);
  39. }
Add Comment
Please, Sign In to add comment