First of all I am using the API not MFC, but since there is no API section, my question goes here.
I want to create a status bar on a dialog window. If I do:
CreateWindowEx(0, "msctls_statusbar32", NULL, WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hwnd_main, NULL, GetModuleHandle(NULL), NULL);
It works fine. But I want to create it in the resource file (.rc). I try (inside the DIALOG definition):
CONTROL "", IDC_STATUSBAR, "msctls_statusbar32", WS_CHILD | WS_VISIBLE, 0, 0, 0, 0
It compiles fine but no status bar appear. Any Ideas?