Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef UNICODE
- #define CreateWin CreateWindowExA
- typedef PCSTR LPCSTR
- #else
- typedef PCSTR LPCWSTR
- #define CreateWin CreateWindowExW
- #endif
- HWND MakeControl(
- _In_opt_ PCSTR lpClassName,
- _In_opt_ PCSTR lpWindowName,
- _In_ DWORD dwStyle,
- _In_ int X,
- _In_ int Y,
- _In_ int nWidth,
- _In_ int nHeight,
- _In_opt_ HWND hWndParent,
- _In_opt_ HMENU hMenu,
- _In_opt_ HINSTANCE hInstance,
- _In_opt_ LPVOID lpParam) {
- return CreateWin(0L, lpClassName, lpWindowName, dwStyle, X, Y,
- nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
- }
- HWND SWELL_MakeButton(
- _In_opt_ PCSTR lpClassName,
- _In_opt_ PCSTR lpWindowName,
- _In_ DWORD dwStyle,
- _In_ int X,
- _In_ int Y,
- _In_ int W,
- _In_ int H,
- _In_opt_ HWND hWndParent,
- _In_opt_ HMENU hMenu,
- _In_opt_ HINSTANCE hInstance,
- _In_opt_ LPVOID lpParam) {
- return MakeControl(lpClassName, lpWindowName, DWORD, X, Y, W, H, hWndParent,
- hMenu, hInstance, lpParam);
- }
Add Comment
Please, Sign In to add comment