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

C / C++ / MFC

 
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 
GeneralRe: Custom toolbar's Pin
Shog926-Mar-02 18:02
sitebuilderShog926-Mar-02 18:02 
What are your needs? If you just need a toolbar, perhaps w/ simple controls (entry fields/combo boxes), consider just building it from scratch w/ code:
  1. Create CToolBar w/ appropriate styles
  2. Create and populate image list(s) w/ neccessary icons
  3. Build list of strings (if you want text for some/all buttons)
  4. Build and populate array of TBBUTTON structures describing attributes of buttons and separators (separators also as placeholder for controls)
  5. Add all these to the toolbar
  6. Autosize the toolbar ctrl

This works nicely in almost all situations.

If you need something fancier, please attempt to use a library already written. There are some very nice (and free) ones out there. MFC's dockbar support is a horrible, crypic mess of undocumented spagetti code, hard-coded values, and ugly workarounds; it will permanantly scar your mind. I'd be willing to bet that someone unfamiliar with the code could more quickly implement the entire system from scratch than understand the existing one.

Ok, maybe i'm just dull, but in any case, life is too short, and MFC is dying. Don't make things any harder for yourself than necessary!
Smile | :)

And if words were wisdom, I'd be talking even more.

The Offspring, I Choose


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 
GeneralRe: help files in C++ Pin
lucy28-May-02 5:12
lucy28-May-02 5:12 

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.