TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Gautam Lad
from: jan danielsson
date: 1996-06-25 14:35:14
subject: WinEnableMenuItem();

[...]

 GL>        hwnd_menu = WinWindowFromID(handle,IDM_TIMER);              
 GL>   rc = WinEnableMenuItem(hwnd_menu,IDM_START,TRUE);                
 GL> break;

you are querying the wrong id. IDM_TIMER is a menu-item-id, not the menu-id.

try this:

hWndMenu = WinWindowFromID(hWndFrame, FID_MENU);
or: hWndMenu = WinWindowFromID(WinQueryWindow(hWnd, QW_PARENT), FID_MENU);

rc = WinEnableMenuItem(hWndMenu, IDM_START, FALSE);


  ..jd

* Origin: discussion is irrelevant (2:205/323)
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 517 628 713/888 800/1
@PATH: 205/323 300 0 201/505 0 200 2104 109/347 18 13/25 396/1 270/101
@PATH: 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™.