Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

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.
0
joostjag
Asked:
joostjag
  • 2
1 Solution
 
BigRatCommented:
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.
0
 
joostjagAuthor Commented:
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
0
 
joostjagAuthor Commented:
BTW BigRat, what do you mean with "in the old days"? Are you using a visual development tool or something now?
0
 
migelCommented:
Hi!
Winodws don`t display dialog af it teplate contain control with unregister class.
I think that your class name WC_LISTVIEW - is incorrect try to use:
"SysListView32" - (generated by VisualC++ Resource studio)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now