Solved

Common Controls in dialog boxes

Posted on 1998-12-01
4
317 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

706 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

18 Experts available now in Live!

Get 1:1 Help Now