Solved

Common Controls in dialog boxes

Posted on 1998-12-01
4
320 Views
Last Modified: 2013-12-03
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
Comment
Question by:joostjag
  • 2
4 Comments
 
LVL 27

Expert Comment

by:BigRat
ID: 1416541
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
 

Author Comment

by:joostjag
ID: 1416542
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
 

Author Comment

by:joostjag
ID: 1416543
BTW BigRat, what do you mean with "in the old days"? Are you using a visual development tool or something now?
0
 
LVL 12

Accepted Solution

by:
migel earned 50 total points
ID: 1416544
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now