Link to home
Start Free TrialLog in
Avatar of joostjag
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,10,200,105
I'm sure I called the InitCommonControls() procedure, but the whole dialog box doesn't even show up.
Avatar of BigRat
BigRat
Flag of France image

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.
Avatar of joostjag
joostjag

ASKER

YearPlanner DIALOG 80,60,220,150
STYLE DS_3DLOOK | DS_MODALFRAME
CAPTION "Jaarplanner"
{
   CONTROL "",-1,"WC_LISTVIEW",0,10,10,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
BTW BigRat, what do you mean with "in the old days"? Are you using a visual development tool or something now?
ASKER CERTIFIED SOLUTION
Avatar of migel
migel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial