home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!destroyer!sol.ctr.columbia.edu!hamblin.math.byu.edu!yvax.byu.edu!cunyvm!psuvm!cdf1
- Newsgroups: comp.lang.pascal
- Subject: TPW 1.5 Problem with making a TDlgWindow Iconic
- Message-ID: <93003.203333CDF1@psuvm.psu.edu>
- From: Carl Fago <CDF1@psuvm.psu.edu>
- Date: Sun, 3 Jan 1993 20:33:33 EST
- Organization: Penn State University
- Lines: 26
-
- I'm having a problem with a program I am having. I have the following code
- for the main window (TDlgWindow type) of a program but when I minimize it
- I don't get the neat little icon I developed for it...
-
- PROCEDURE TASLWindow.GetWindowCLass (VAR AWndClass : TWndClass);
- BEGIN
- TDlgWindow.GetWindowClass (AWndClass);
- AWndClass.hIcon := LoadIcon(HInstance, AName);
- END;
-
- Now, AName is passed to the Init procedure for TASLWindow from the
- application's InitMainWindow procedure. Also, I have checked to ensure that
- the value for AName is identical to the name of the icon in the loaded
- resource.
-
- When I try to minimize the program I get the upper left hand portion of the
- TDlgWindow.
-
- Is there anything else that I can look for to see what I am doing wrong?
-
- Thanks in advance for any help!
-
- *-=Carl=-* INTERNET - cdf1@psuvm.psu.edu | In battle, you can do |
- GEnie - C.FAGO1 | everything right... |
- Carl Fago State College, PA | and _still_ lose! |
-
-