Article View: de.comp.lang.c++
Article #293Re: Inactive title bar
From: Michail Brzitwa
Date: Tue, 22 Aug 1995 22:37
Date: Tue, 22 Aug 1995 22:37
42 lines
2275 bytes
2275 bytes
In article <116506738wnr@slpeng.demon.co.uk>,
paul@slpeng.demon.co.uk, aka Paul Ashford wrote:
> I have a child dialog box and the title comes up in the in-active
> color. This is because i am calling it with CreateDialogBox with
> creates a modalless box. To change the color of the title box can i
> change the class of mess around with the SetSysColors
Are you using MFC/OWL or the C/SDK way? At least in the latter case it
would be more helpful if you provide some excerpts of your code. I think
something like
hModelessDialog = CreateDialog(hInstance,"DIALOG",hWndMain,lpfnHandler);
ShowWindow(hModelessDialog,SW_SHOW); // Modeless dialogs don't normally
// get the WS_VISIBLE style.
... code in between
DestroyWindow(hModelessDialog);
should be working, i.e. the dialog's title bar should be active unless
you go somewhere else. Does it resemble your code? Why did you say 'child
dialog', have you flagged your dialog as a child?
> PS: I am also trying to make a windows shell ( eg sub-set of ProgMan
> ) how do i do this ?
Simply write an application which manages documents and applications,
implement the needed progman DDE-stuff, make it absolutely stable and
there you are. Nowadays OLE and Drag&Drop features should be included
as well, though you'd be better off using MFC or OWL then to handle the
complicated parts.
But remember, the progman approach is obsolete, even for NT in the near
future. If I were you, I would be waiting until I have understood the
new ShellExtensions for the Explorer, and then go for a new shell.
Michail
------------------------------------------------------------------------
Michail Brzitwa <mb@icem.de> +49-511-343215
GM/CS d?(-+) H---(++) s:+ !g a? w !v C++ U[I]++ P-- E-- N++ W++
po--- t++ b++ D++ e+(++++) u---(**) f r- n@ y++
Technical Details
Message-ID:
<5sPeOlP4pWB@ichabod.hnv.icem.de>Path:
arc1-ca.pugleaf.net!ichabod.hnv.icem.de!mbReferences:
<116506738wnr@slpeng.demon.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ichabod.hnv.icem.de!mb Date: 23 Aug 1995 00:37:00 +0200 From: mb@ichabod.hnv.icem.de (Michail Brzitwa) Newsgroups: de.comp.lang.c++ Message-ID: <5sPeOlP4pWB@ichabod.hnv.icem.de> References: <116506738wnr@slpeng.demon.co.uk> Subject: Re: Inactive title bar X-Newsreader: XP v3.02 Organization: Castle of Indolence, Hannover, Germany