Article View: comp.os.os2.programmer
Article #2016Re: Changing window title & PM's compressed bitmaps
From: Larry Salomon Jr.
Date: Mon, 12 Oct 1992 13:57
Date: Mon, 12 Oct 1992 13:57
27 lines
1565 bytes
1565 bytes
In <1992Oct11.163011.8231@news.tu-graz.ac.at> tom@piassun1.joanneum.ac.at (Tom Leitner) writes: >Hi fellow programmers, Graz, 11.10.92 >I got two (almost:-) short PM programming question: >1.) I want to modify the window title of the main window of my application > using the following code in my ClientWindowProc: > DosPostEventSem(hevStartMeasuring); > sprintf(WindowTitle, "%s -- measuring", szAppName); > WinSetWindowText(hwnd, WindowTitle); > but this simply refuses to change the title. I already tried to > use the HWND handle returned by the WinCreateStdWindow call in main() > but no avail. Try WinSetWindowText(WinQueryWindow(hwnd,QW_PARENT),WindowTitle) (add a ",FALSE" after "QW_PARENT" if this is a 16-bit call). Cheers, Q -- "If you choose not to decide, you | "A fool and his money are fun to go still have made a choice" - Rush | out with" - seen on a T-shirt ------------------------------------------------------------------------
Technical Details
Message-ID:
<1992Oct12.135721.2639@panix.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!stl!bnrgate!corpgate!news.utdallas.edu!wupost!zaphod.mps.ohio-state.edu!swrinde!gatech!news.ans.net!cmcl2!panix!os2manReferences:
<1992Oct11.163011.8231@news.tu-graz.ac.at>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!stl!bnrgate!corpgate!news.utdallas.edu!wupost!zaphod.mps.ohio-state.edu!swrinde!gatech!news.ans.net!cmcl2!panix!os2man From: os2man@panix.com (Larry Salomon Jr.) Newsgroups: comp.os.os2.programmer Subject: Re: Changing window title & PM's compressed bitmaps Message-ID: <1992Oct12.135721.2639@panix.com> Date: 12 Oct 92 13:57:21 GMT References: <1992Oct11.163011.8231@news.tu-graz.ac.at> Organization: PANIX Public Access Unix, NYC Lines: 27