Thread overview | |||||
---|---|---|---|---|---|
|
September 12, 2003 List-View Control stops dialog-box creation... | ||||
---|---|---|---|---|
| ||||
#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 |
September 12, 2003 Re: List-View Control stops dialog-box creation... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anonymous | 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 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 > > > |
September 12, 2003 Re: List-View Control stops dialog-box creation... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | 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. |
Copyright © 1999-2021 by the D Language Foundation