Thread View: comp.windows.ms.programmer
3 messages
3 total messages
Started by Mr S J Morris 92
Fri, 22 Jan 1993 10:40
Child window with a menu?
Author: Mr S J Morris 92
Date: Fri, 22 Jan 1993 10:40
Date: Fri, 22 Jan 1993 10:40
22 lines
1741 bytes
1741 bytes
Is there a way of combining windows style constants so as to give a menu with a child window? From what I can see by experimenting with the ws_ style constants, the only way of obtaining a menu is to define a style containing ws_Popup, and yet ws_Popup may not be used with ws_Child. I could of course put the menu on the parent window, but as what I'm trying to do is to put a small edit window at the bottom right-hand corner of a screenful of graphics I don't want to have to separate the menu too much from the window it pertains to. -- Steve Morris, Adran Ffiseg a Seryddiaeth, Coleg Prifysgol Cymru Caerdydd. (Physics and Astronomy Dept., UWC Cardiff) spxsjm@uk.ac.cf.thor *************************************************************************** * For God so loved the world that he* Canys felly y carodd Duw y byd fel * * gave his only-begotten Son, that * y rhoddodd efe ei unig-anedig Fab, * * whosever believes in him should * fel na choller pwy bynnag a gredo * * not perish but have everlasting * ynddo Ef, ond caffael ohono fywyd * * life. (John ch.3 v.16) * tragwyddol. (Ioan p.3 ad.16) * ***************************************************************************
Re: Child window with a menu?
Author: M. Guyott
Date: Fri, 22 Jan 1993 18:52
Date: Fri, 22 Jan 1993 18:52
21 lines
1619 bytes
1619 bytes
In article <23365.9301221040@thor.cf.ac.uk> spxsjm@thor.cf.ac.uk (Mr S J Morris 92) writes:
>Is there a way of combining windows style constants so as to give a menu
>with a child window? From what I can see by experimenting with the ws_
>style constants, the only way of obtaining a menu is to define a style
>containing ws_Popup, and yet ws_Popup may not be used with ws_Child.
Have you tried creating your child window and then using LoadMenu() and
SetMenu() in the WM_CREATE message processing code?
I have never tried this but it may do want you want. Then again it may
not. Let me know if it works for you!
Marc
----
Two of the worst things we teach our children are that a knowledge of science
is nice but not necessary, and a knowledge of sex is necessary but not nice.
Marc Guyott Constellation Software, Inc. (508) 620-2800
Framingham, Mass. 01701 USA Ext. 3135
mguyott@primerd.prime.com ...!{uunet, decwrl}!primerd.prime.com!mguyott
mguyott@eriador.prime.com ...!{uunet, decwrl}!eriador.prime.com!mguyott
Is there a FAQ list for this newsgroup ?
Author: Yaniv Shaya
Date: Wed, 27 Jan 1993 06:57
Date: Wed, 27 Jan 1993 06:57
9 lines
776 bytes
776 bytes
Hi everybody ~~~~~~~~~~~~ I would like to get the FAQ list for the windows programming newsgroups if there is such. Could someone point me to it ? Prefferably to an ftp site and directory. Thanks ~~~~~~ Yaniv
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads