| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Where is my menu? |
Hello All!
I have a resource script (slightly simplified for posting):
-------------------------------8<------------------------------------
ICON IDR_DCW dcw.ico
MENU IDR_DCW
{
MENUITEM "E~xit", SC_CLOSE, MIS_SYSCOMMAND
}
WINDOWTEMPLATE IDR_DCW
{
FRAME "", IDR_DCW, 0, 0, 460, 180, NOT FS_DLGBORDER | FS_BORDER |
WS_VISIBLE | WS_CLIPSIBLINGS, FCF_TITLEBAR | FCF_SYSMENU |
FCF_MENU | FCF_ICON
{
WINDOW "", FID_CLIENT, 0, 0, 460, 130, DCWMAINWNDCLASS, WS_VISIBLE
CONTROL "Activity monitor", 0, 8, 43, 444, 73, WC_STATIC,
SS_GROUPBOX |
DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
CONTROL "", MLE_LOG, 15, 48, 430, 57, WC_MLE, MLS_BORDER |
MLS_HSCROLL | MLS_VSCROLL | WS_VISIBLE | WS_GROUP | WS_TABSTOP
}
}
-------------------------------8<------------------------------------
After WinLoadDlg complete I see my window without a menu bar. If I then invoke
WinLoadMenu(WinQueryWindow(hwndFromWinLoadDlg, QW_PARENT), hmod, IDR_DCW);
it returns Ok but still no menu apperas. Why? Is it possible to load
resource windows with WinLoadDlg? I DO want my resourse window to be my
client window.
Bye!
Rinat Sadretdinow [Team OS/2]
---
* Origin: -= Thunder Bird =- +7 095 947 1209 10:00pm-08:00am (2:5020/620)SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1 @PATH: 5020/620 509 443 79 5100/8 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™.