Solved

Common Controls in dialog boxes

Posted on 1998-12-01
4
329 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared 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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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