Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing a view in an SDI. Pin
valikac28-Nov-02 17:30
valikac28-Nov-02 17:30 
GeneralOpening a new document Pin
Andrew Bleakley28-Nov-02 12:50
Andrew Bleakley28-Nov-02 12:50 
GeneralRe: Opening a new document Pin
valikac28-Nov-02 17:33
valikac28-Nov-02 17:33 
GeneralRe: Opening a new document Pin
Roger Allen29-Nov-02 2:24
Roger Allen29-Nov-02 2:24 
GeneralRe: Opening a new document Pin
Jamie Hale29-Nov-02 9:04
Jamie Hale29-Nov-02 9:04 
GeneralClassWizard Not Working Properly Pin
Steven M Hunt28-Nov-02 11:29
Steven M Hunt28-Nov-02 11:29 
GeneralRe: ClassWizard Not Working Properly Pin
Anatari28-Nov-02 15:13
Anatari28-Nov-02 15:13 
GeneralFloating CControlbar Question ... Pin
Maximilien28-Nov-02 11:19
Maximilien28-Nov-02 11:19 
background : I need to be able to handle the close button of a miniframe window of a CControlBar; the only way ( that I Found ), is to hack it in the system with the undocumented : m_pFloatingFrameClass member of CFrameWnd :

// something like that with (pBar is a CCOntrolBar inherited class )
if ( pBar )
{
 if( !pBar->Create("wow", this, IDC_OBJECT_TOOLBAR) )
 {
  TRACE0("Failed to create object bar\n");
  return -1;       // fail to create
 }
 pBar->SetBarStyle( pBar->GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY |  CBRS_SIZE_DYNAMIC );
 pBar->EnableDocking( CBRS_ALIGN_LEFT | CBRS_ALIGN_RIGHT );
 EnableDocking(CBRS_ALIGN_ANY);

 // in the documentation of CSizingControlBar they write that it must be just after the EnableDocking call.
 m_pFloatingFrameClass = RUNTIME_CLASS(FloatingBarFrame);

 DockControlBar(pBar, AFX_IDW_DOCKBAR_RIGHT|AFX_IDW_DOCKBAR _LEFT);

 pBar->LoadState(s);
}


this works sometimes ( and in another case ) ?!?^!^?!^!%!@@$!@#$!%

Mad | :mad:

question I have, can LoadState of the CControlBar and the LoadBarState of the CFrameWnd break the m_pFloatingFrameClass ? I still don't full understand why it doesn't really work ...

Any ideas ( maybe the turkey will help ! ) ?

Thanks.

Max.
GeneralRe: Floating CControlbar Question ... Pin
Maximilien29-Nov-02 3:25
Maximilien29-Nov-02 3:25 
Questionhow to tab to next edit box by pressing 'return (enter key)' Pin
IrishSonic28-Nov-02 11:18
IrishSonic28-Nov-02 11:18 
AnswerRe: how to tab to next edit box by pressing 'return (enter key)' Pin
Chris Losinger28-Nov-02 17:27
professionalChris Losinger28-Nov-02 17:27 
AnswerRe: how to tab to next edit box by pressing 'return (enter key)' Pin
Roger Allen29-Nov-02 4:39
Roger Allen29-Nov-02 4:39 
GeneralLinking Pin
Anthony988728-Nov-02 11:05
Anthony988728-Nov-02 11:05 
Generala non rectangular splash screen class with Alpha blending (Article discussions) Pin
yary28-Nov-02 9:30
yary28-Nov-02 9:30 
GeneralRe: a non rectangular splash screen class with Alpha blending (Article discussions) Pin
Christian Graus28-Nov-02 11:20
protectorChristian Graus28-Nov-02 11:20 
QuestionIs there a function in C++ that will split a char array delimited by a specific character? Pin
Redeemer-dk28-Nov-02 9:05
Redeemer-dk28-Nov-02 9:05 
AnswerRe: Is there a function in C++ that will split a char array delimited by a specific character? Pin
Maximilien28-Nov-02 9:19
Maximilien28-Nov-02 9:19 
GeneralRe: Is there a function in C++ that will split a char array delimited by a specific character? Pin
David Salter29-Nov-02 0:15
David Salter29-Nov-02 0:15 
AnswerRe: Is there a function in C++ that will split a char array delimited by a specific character? Pin
Carlos Antollini28-Nov-02 9:24
Carlos Antollini28-Nov-02 9:24 
AnswerRe: Is there a function in C++ that will split a char array delimited by a specific character? Pin
Joe Woodbury30-Nov-02 6:29
professionalJoe Woodbury30-Nov-02 6:29 
GeneralOperPrinter for network-printer Pin
---iLYA---28-Nov-02 8:55
---iLYA---28-Nov-02 8:55 
Generaltreeview node deletion question. Pin
trustno128-Nov-02 8:53
trustno128-Nov-02 8:53 
GeneralRe: treeview node deletion question. Pin
Gary R. Wheeler30-Nov-02 2:53
Gary R. Wheeler30-Nov-02 2:53 
Questionhow do u add an item to start menu? Pin
devvvy28-Nov-02 8:53
devvvy28-Nov-02 8:53 
AnswerRe: how do u add an item to start menu? Pin
Malibu28-Nov-02 9:45
Malibu28-Nov-02 9:45 

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.