| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | More Dialog Help |
Can anyone tell me if there is an OS/2 Presentation Manager C/C++
equivalent of the following Windows MFC / Windows API snippet of code?
What I want to do is define an "empty" icon on an OS/2 P.M. dialog box,
then depending on the menu item / toolbar button that the user chooses,
send a certain ICON to the dialog box. I would send different icons,
depending on the menu item the user picked. In my MFC code, it goes something
like this...
// MFC Code
LPCSTR IdIconResource;
HICON hicon, hiconOld;
HINSTANCE TestInstance;
TestInstance = AfxGetInstanceHandle();
IdIconResource = MAKEINTRESOURCE(IDR_ICON);
hicon = LoadIcon(TestInstance,IdIconResource);
hiconOld = (HICON)SendDlgItemMessage(IDR_NEWICON, STM_SETICON,
(WPARAM)hicon, 0);
Someone on Internet suggested using WinLoadPointer() to load
an icon from the resources, but didn't provide any example code.
I wasted about two hours researching the Watcom online help and
toying with code, but never could get anything to work. Any help
would be greatly appreciated. If you know of somewhere I can grab
source/examples (or an EDMI issue number), that'd help; or if you
can post a brief example here. Thanks.
--- PPoint 2.00
* Origin: ** Snake-Byte Incorporated ** (1:3819/128.103)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 3819/128 157 3615/50 396/1 270/101 712/515 711/808 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™.