Click here to Skip to main content
16,014,677 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Does this cause the memory leak when I draw on a view? Pin
Roger Allen2-Apr-02 23:33
Roger Allen2-Apr-02 23:33 
QuestionHow Can I get MFC support in ATL EXE COM Server project! Pin
wabc2-Apr-02 15:49
wabc2-Apr-02 15:49 
GeneralCreating custom types Pin
2-Apr-02 15:31
suss2-Apr-02 15:31 
GeneralRe: Creating custom types Pin
Christian Graus2-Apr-02 15:45
protectorChristian Graus2-Apr-02 15:45 
GeneralRe: Creating custom types Pin
2-Apr-02 20:31
suss2-Apr-02 20:31 
GeneralRe: Creating custom types Pin
alex.barylski2-Apr-02 23:17
alex.barylski2-Apr-02 23:17 
GeneralDialogs in MDI app have gray titlebar Pin
Jack Handy2-Apr-02 15:20
Jack Handy2-Apr-02 15:20 
GeneralRe: Dialogs in MDI app have gray titlebar Pin
Shog92-Apr-02 20:29
sitebuilderShog92-Apr-02 20:29 
AFAIK, only top-level windows can be active. MFC fakes activation for MDI child windows by maintaining an internal active frame, and manually sending WM_NCACTIVATE with the appropriate parameters to the frames. This much i gathered from a quick browse through winfrm.cpp anyway.

If all you care about is getting rid of the gray title bar, you can easily send WM_NCACTIVATE to your dialog to accomplish this; however, you may want to consider using a CFrameWnd-derived class for this purpose, as it will function better along with the other MDI children (CTRL+Tab handling for instance).

Sometimes i only remember, The days when i was young
Nowadays no one remembers when they were young and stupid...

ADEMA, The Way You Like It


GeneralRe: Dialogs in MDI app have gray titlebar Pin
Jack Handy2-Apr-02 21:26
Jack Handy2-Apr-02 21:26 
GeneralCreate DialogBar from CDialog Pin
2-Apr-02 13:56
suss2-Apr-02 13:56 
Generalset<int>::find crashing Pin
Cathy2-Apr-02 12:47
Cathy2-Apr-02 12:47 
GeneralRe: set<int>::find crashing Pin
Paul M Watt2-Apr-02 13:08
mentorPaul M Watt2-Apr-02 13:08 
GeneralRe: set<int>::find crashing Pin
Cathy2-Apr-02 13:15
Cathy2-Apr-02 13:15 
GeneralRe: set<int>::find crashing Pin
Paul M Watt2-Apr-02 14:06
mentorPaul M Watt2-Apr-02 14:06 
GeneralRe: set<int>::find crashing Pin
Cathy3-Apr-02 7:19
Cathy3-Apr-02 7:19 
GeneralRe: set<int>::find crashing Pin
Mike Nordell2-Apr-02 22:28
Mike Nordell2-Apr-02 22:28 
GeneralRe: set<int>::find crashing Pin
Cathy3-Apr-02 6:47
Cathy3-Apr-02 6:47 
GeneralRe: set<int>::find crashing Pin
Mike Nordell15-Apr-02 12:48
Mike Nordell15-Apr-02 12:48 
GeneralRe: set<int>::find crashing Pin
Cathy15-Apr-02 13:14
Cathy15-Apr-02 13:14 
GeneralWorkspace & Projects Pin
AJ1232-Apr-02 10:38
AJ1232-Apr-02 10:38 
GeneralRe: Workspace & Projects Pin
Joaquín M López Muñoz2-Apr-02 10:39
Joaquín M López Muñoz2-Apr-02 10:39 
GeneralRe: Workspace & Projects Pin
Nemanja Trifunovic2-Apr-02 10:48
Nemanja Trifunovic2-Apr-02 10:48 
GeneralRe: Workspace & Projects Pin
AJ1233-Apr-02 10:31
AJ1233-Apr-02 10:31 
GeneralRe: Workspace & Projects Pin
Tim Smith3-Apr-02 10:47
Tim Smith3-Apr-02 10:47 
QuestionCSliderCtl and Arrow Keys? Pin
Ken Goguen2-Apr-02 9:21
Ken Goguen2-Apr-02 9:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.