home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!think.com!spool.mu.edu!agate!usenet.ins.cwru.edu!wariat!sjsobol
- From: sjsobol@wariat.org (Steven J. Sobol)
- Subject: Re: TPW 1.5 Problem with making a TDlgWindow Iconic
- Message-ID: <1993Jan6.055832.14608@wariat.org>
- Organization: APK Public Access Unix * Cleveland, OH
- X-Newsreader: TIN [version 1.1 PL7]
- References: <93003.203333CDF1@psuvm.psu.edu>
- Date: Wed, 6 Jan 1993 05:58:32 GMT
- Lines: 29
-
- Carl Fago (CDF1@psuvm.psu.edu) wrote:
-
- : 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?
-
- Make sure the class name in the dialog resource is the same as the class
- name in the program's source code.
- --
- Steve Sobol Head Cheerleader, APK Public Access *nix/Internet
- (216) 481-9436 <2400 baud> (216) 481-9425 <v.32bis, TurboPEP>
- Telnet: wariat.org To register: send e-mail to info@wariat.org, or
- log in to BBS and download file 'user.new' from file area 2.
-
- Also President of The Tiny Software Co. E-Mail Address: sjsobol@tiny.com
-