TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Keith Cumberbatch
date: 1994-09-24 20:30:08
subject: borland C++ 1.5

PF>  KC> I'am using WinEnableMenuItem to enable and disable menu options but BC
PF>  KC> is generating warnings saying the code has no effect (The code does
PF> 
PF> WinEnableMenuItem() is actually a macro,  part of which the 
PF> code generator has decided will never be executed (thus has 
PF> no effect).
PF> 
PF> The IBM compiler interprets some #pragma's in the os2*.h 
PF> files that turns this type of warning off.

I found out which #pragma to use :->

PF>  KC> How do I dynamically load and unload menu options.
PF> 
PF>  WinSendMsg( ... MM_INSERTITEM ... )
PF>  WinSendMsg( ... MM_DELETEITEM ... )

After a little more reading I found that out, thanks.

___
 X KWQ/2 1.2g X If at first you don't succeed, put it out for beta test.

--- Maximus/2 2.01wb

* Origin: The Boiler Room OS/2 (1:278/2000)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 278/2000 10 261/1023 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808
@PATH: 711/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™.