TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mark Kimes
from: aaron smith
date: 1995-03-19 11:03:00
subject: Icon Changing, help...

* Quoting Mark Kimes, wrote in a message to aaron smith:

Hello Mark Kimes,

 as>  hptrIcon = WinLoadPointer(hwndFrame,0L,ID_MYICON);

 MK>  if(!hptrIcon)      /* this will point out your problem */
 MK>    DosBeep(50,100);

 as>  WinSendMsg(hwndFrame,WM_SETICON,(MPARAM)hptrIcon,0);

 as>The icon changes to v which isn't the icon. 

 MK> hptrIcon = WinLoadPointer(HWND_DESKTOP,0,ID_MYICON);
 MK> WinSendMsg(hwndFrame,WM_SETICON,MPFROMLONG(hptrIcon),MPVOID)
 MK> ; 

I shouldn't really admit this, but...:-) The Icon I was trying to load,
which loaded fine, had several icons defined for different
environments(screens sizes etc.). The above worked after I pulled my head
out. :-)

In addition, I like the error checking you've provided, thanks!

Learning a new environment is a pain, but I like what I've seen. Thanks
again for the help.

        Have Fun,
        Smitty

--- 
* Origin: To C or NOT to C - Tucson, AZ. (1:300/201)
SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955
SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809
@PATH: 300/201 15 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.