I can't understand what the problem is ?
Can you explain what problem is with this tiny example ?
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
LRESULT CALLBACK MainDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_INITDIALOG:
return TRUE;
case WM_CLOSE:
EndDialog(hwndDlg, 0);
return TRUE;
}
return FALSE;
}
int __cdecl WinMainCRTStartup(void)
{
return DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(1001), NULL, (DLGPROC)MainDlgProc);
}
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
1001 DIALOGEX DISCARDABLE 6, 18, 82, 38
STYLE DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Dialog"
FONT 8, "Tahoma", 0, 0, 1
{
CONTROL "This label:", 4001, "Static", WS_GROUP, 0, 0, 40, 12, WS_EX_CLIENTEDGE
CONTROL "Edit", 4002, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 40, 0, 40, 12
CONTROL "This label:", 4003, "Static", WS_GROUP, 0, 12, 40, 12, WS_EX_CLIENTEDGE
CONTROL "Edit", 4004, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 40, 12, 40, 12
CONTROL "This label:", 4005, "Static", WS_GROUP, 0, 24, 40, 12, WS_EX_CLIENTEDGE
CONTROL "Edit", 4006, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 40, 24, 40, 12
}