home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!psgrain!hippo!ucthpx!casper.cs.uct.ac.za!jholdern
- From: jholdern@casper.cs.uct.ac.za (J E Holderness)
- Subject: Minimized icon not displayed correctly
- Message-ID: <Bu5IyC.3oC@casper.cs.uct.ac.za>
- Organization: Computer Science Department, University of Cape Town
- Date: Sun, 6 Sep 1992 10:11:00 GMT
- Lines: 25
-
- I've written a small application that uses a dialog box for its main
- window (don't know if that makes any difference). The problem is that when
- it is minimized, the icon doesn't display - it looks like its displaying
- the top left hand corner of the client area.
-
- The icon does display properly when I use alt-tab to flip between tasks,
- and also when I move it (it shows up black and white as it should).
-
- My GetWindowClass and GetClassName funcs look something like this:
-
- LPSTR TMyWindow::GetClassName()
- {
- return "MyWindow";
- }
-
- void TMyWindow::GetWindowClass(WNDCLASS& AClass)
- {
- TDialog::GetWindowClass(AClass);
- AClass.hIcon = LoadIcon (GetModule()->hInstance, MAKEINTRESOURCE(MY_ICON));
- }
-
- I am using Borland C OWL. Any ideas what I am doing wrong?
-
- - jim
-
-