joostjag
asked on
Common Controls in dialog boxes
I'm trying to create a listview control in a dialog box using the following line:
CONTROL "",-1,"WC_LISTVIEW",0,10,1 0,200,105
I'm sure I called the InitCommonControls() procedure, but the whole dialog box doesn't even show up.
CONTROL "",-1,"WC_LISTVIEW",0,10,1
I'm sure I called the InitCommonControls() procedure, but the whole dialog box doesn't even show up.
Full rc script would be nice. In the old days when I used to write this sort of thing I always (ALWAYS!) forgot WS_VISIBLE.
ASKER
YearPlanner DIALOG 80,60,220,150
STYLE DS_3DLOOK | DS_MODALFRAME
CAPTION "Jaarplanner"
{
CONTROL "",-1,"WC_LISTVIEW",0,10,1 0,200,105
PUSHBUTTON "OK",ID_OK,20,125,50,15
PUSHBUTTON "Annuleren",ID_CANCEL,140, 125,50,15
}
The problem is, the whole dialog box doesn't show up, not only the listview control
STYLE DS_3DLOOK | DS_MODALFRAME
CAPTION "Jaarplanner"
{
CONTROL "",-1,"WC_LISTVIEW",0,10,1
PUSHBUTTON "OK",ID_OK,20,125,50,15
PUSHBUTTON "Annuleren",ID_CANCEL,140,
}
The problem is, the whole dialog box doesn't show up, not only the listview control
ASKER
BTW BigRat, what do you mean with "in the old days"? Are you using a visual development tool or something now?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.