Article View: comp.os.os2.programmer
Article #947Re: Icons in the title bar (a la EPM in ring enabled mode)
From: Larry Margolis
Date: Thu, 10 Sep 1992 19:23
Date: Thu, 10 Sep 1992 19:23
26 lines
1949 bytes
1949 bytes
In <h1qn40+.msmith@netcom.com> msmith@netcom.com (Martin P. Smith) writes: > The subject pretty much says it for me. How can I create icons in the title > bar. I would really like to build this capability into a product I am > developing. I have looked through the programmers guide volume two but > cannot seem to find the relevant info. In general terms: Subclass the frame's window procedure. In your subclassed windowproc, process the WM_QUERYFRAMECTLCOUNT message by returning the value you get from calling the frame's default windowproc plus the number (n) of controls you want to add. Process the WM_FORMATFRAME message by calling the frame's default windowproc, and you'll get back an array of SWP structures equivalent to the value you returned for WM_QUERYFRAMECTLCOUNT. The last n are for the ones you added, and are there for formatting the controls you want to add. You can find the window handle for the title bar and shrink the size as needed. For your controls, put in appropriate formatting information as well as the desired window handle (which you've already created). Look at the WM_FORMATFRAME documentation if anything's not clear. Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet) (Technical details courtesy of John Ponzo)
Technical Details
Message-ID:
<1992Sep10.192335.36146@watson.ibm.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!news From: Larry Margolis <margoli@watson.ibm.com> Subject: Re: Icons in the title bar (a la EPM in ring enabled mode) Sender: news@watson.ibm.com (NNTP News Poster) Message-ID: <1992Sep10.192335.36146@watson.ibm.com> Date: Thu, 10 Sep 1992 19:23:35 GMT Distribution: comp.os.os2.programmer Reply-To: margoli@watson.ibm.com Disclaimer: This posting represents the poster's views, not necessarily those of IBM Nntp-Posting-Host: lamail.watson.ibm.com Organization: The Village Waterbed Lines: 26