c++.windows.32-bits - List-View Control stops dialog-box creation...
- Anonymous <Anonymous_member pathlink.com> Sep 12 2003
- "Matthew Wilson" <matthew stlsoft.org> Sep 12 2003
- Anonymous <Anonymous_member pathlink.com> Sep 12 2003
#include <windows.h> #include "workdone.h" Using the following resource with a standard DialogBox works, unless I uncomment the listview control, at which point it won't create the dialogbox. Using the MingW compiler, it will create the dialogbox, is there soemthing special I need to do for DM? (The Dialog Procedure is just a standard ok/cancel choice) IDWORKDONE DIALOG 6, 18, 180, 180 STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "Verify Work Completed" FONT 8, "MS Sans Serif" BEGIN COMBOBOX IDFIELDREPCB, 6, 6, 168, 35, CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP PUSHBUTTON "OK", IDOK, 6, 160, 40, 14 PUSHBUTTON "Exit", IDCANCEL, 134, 160, 40, 14 /* CONTROL "PID Listing", IDPIDLV, "SysListView32", 0x41 | WS_BORDER, 6, 21, 168, 134*/ END
Sep 12 2003
Have you called InitCommonControls() in your WinMain? That is the usual problem in these circumstances "Anonymous" <Anonymous_member pathlink.com> wrote in message news:bjteqb$1jhm$1 digitaldaemon.com...#include <windows.h> #include "workdone.h" Using the following resource with a standard DialogBox works, unless I
the listview control, at which point it won't create the dialogbox. Using
MingW compiler, it will create the dialogbox, is there soemthing special I
to do for DM? (The Dialog Procedure is just a standard ok/cancel choice) IDWORKDONE DIALOG 6, 18, 180, 180 STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION
WS_SYSMENU CAPTION "Verify Work Completed" FONT 8, "MS Sans Serif" BEGIN COMBOBOX IDFIELDREPCB, 6, 6, 168, 35, CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP PUSHBUTTON "OK", IDOK, 6, 160, 40, 14 PUSHBUTTON "Exit", IDCANCEL, 134, 160, 40, 14 /* CONTROL "PID Listing", IDPIDLV, "SysListView32", 0x41 |
6, 21, 168, 134*/ END
Sep 12 2003
In article <bjtgde$1m3g$1 digitaldaemon.com>, Matthew Wilson says...Have you called InitCommonControls() in your WinMain? That is the usual problem in these circumstances
Thank you, that solved the problem.
Sep 12 2003








Anonymous <Anonymous_member pathlink.com>