Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please help!! Create a thread.. Pin
hkl26-Mar-02 19:33
hkl26-Mar-02 19:33 
GeneralRe: Please help!! Create a thread.. Pin
Jon Hulatt26-Mar-02 22:26
Jon Hulatt26-Mar-02 22:26 
QuestionMenuBar, how? Pin
MaTrIX2k226-Mar-02 17:31
MaTrIX2k226-Mar-02 17:31 
AnswerRe: MenuBar, how? Pin
Mazdak26-Mar-02 19:26
Mazdak26-Mar-02 19:26 
GeneralReading/Writing LNK files Pin
Lonnie26-Mar-02 16:50
Lonnie26-Mar-02 16:50 
GeneralRe: Reading/Writing LNK files Pin
alex.barylski26-Mar-02 16:59
alex.barylski26-Mar-02 16:59 
GeneralRe: Reading/Writing LNK files Pin
PJ Arends26-Mar-02 18:50
professionalPJ Arends26-Mar-02 18:50 
GeneralCustom toolbar's Pin
alex.barylski26-Mar-02 16:43
alex.barylski26-Mar-02 16:43 
I have for the last 2-3 days tried to figure out the CControlBar in hopes of designing a custom toolbar, however I have decided time is running out and I must move on, but still refuse to use the standard MFC/common control toolbars.

I figure I will derive my class from CWnd instead of CCOntrolBar, docking isn't really required, I just thought it'd be neat. Smile | :) If neat gives me heart aches, forget about it, i'll dumb it down a little.

For any controlbar it's absolutely essential that if it doesn't dock it alteast re-adjusts itself and the Frame windows client area IMO anyway. While exploring the CControlBar and MFC specific messages I ran across WM_SIZEPARENT which is sent by the parent(Frame) to all child windows within target ID range. Does this mean I could derive from Cwnd (Save myself some brain cells) and as long as my ID was withint range I can receive this message...?

I'm pretty sure this is how this works.

What I really wanna know is...When I have 2 or 3 other control bars (Status, Toolbar and custom dialogbar) when they are all positioned or docked they update the FrameWnd Client area (grow/shrink). It is this rect that is passed in as lParam in WM_SIZEPARENT...?

I tried this earlier and I kept getting the rect for the entire client area, so my custom bar would overlap the others...not a very desiarble effect. Does the frameWnd call RepositionBars each WM_SIZE it receives...? RecalcLayout adjusts the client area...?

Anybody have any ideas or suggestions...? Except Why don't I use CToolBarEx2 or something

Thanx in advance Smile | :)

Have a day!

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: Custom toolbar's Pin
Shog926-Mar-02 18:02
sitebuilderShog926-Mar-02 18:02 
GeneralDebugging Recursive functions Pin
John Cruz26-Mar-02 16:38
John Cruz26-Mar-02 16:38 
GeneralRe: Debugging Recursive functions Pin
Paul M Watt26-Mar-02 16:44
mentorPaul M Watt26-Mar-02 16:44 
GeneralInput from tablet Pin
26-Mar-02 15:46
suss26-Mar-02 15:46 
GeneralCannot open ClassWizard???!!!!!! Pin
ChiYung26-Mar-02 13:41
ChiYung26-Mar-02 13:41 
GeneralRe: Cannot open ClassWizard???!!!!!! Pin
Chris Maunder26-Mar-02 17:33
cofounderChris Maunder26-Mar-02 17:33 
GeneralToDo::AutoRun for starting a cd Pin
antoine@orchus-tech26-Mar-02 13:16
antoine@orchus-tech26-Mar-02 13:16 
GeneralRe: ToDo::AutoRun for starting a cd Pin
Tomasz Sowinski26-Mar-02 13:20
Tomasz Sowinski26-Mar-02 13:20 
GeneralRe: ToDo::AutoRun for starting a cd Pin
David Wengier26-Mar-02 13:36
David Wengier26-Mar-02 13:36 
Questionhow to print custom fonts and styles Pin
Peterrynan26-Mar-02 12:27
Peterrynan26-Mar-02 12:27 
GeneralITextDocument::GetSelection Pin
Blade[DMS]26-Mar-02 12:26
Blade[DMS]26-Mar-02 12:26 
GeneralRe: ITextDocument::GetSelection < Formatting gone awry Pin
Blade[DMS]26-Mar-02 12:32
Blade[DMS]26-Mar-02 12:32 
GeneralRe: ITextDocument::GetSelection < Formatting gone awry Pin
Tomasz Sowinski26-Mar-02 12:38
Tomasz Sowinski26-Mar-02 12:38 
GeneralRe: ITextDocument::GetSelection < Formatting gone awry Pin
Blade[DMS]26-Mar-02 22:17
Blade[DMS]26-Mar-02 22:17 
Generalhelp files in C++ Pin
RalfPeter26-Mar-02 12:18
RalfPeter26-Mar-02 12:18 
GeneralRe: help files in C++ Pin
Paul M Watt26-Mar-02 13:30
mentorPaul M Watt26-Mar-02 13:30 
GeneralRe: help files in C++ Pin
Jeremy Falcon26-Mar-02 16:39
professionalJeremy Falcon26-Mar-02 16:39 

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.