Click here to Skip to main content
15,895,815 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pointers Pin
Jun Du23-Jun-06 10:30
Jun Du23-Jun-06 10:30 
GeneralRe: Pointers Pin
Jun Du23-Jun-06 10:15
Jun Du23-Jun-06 10:15 
Questionaccessing an ftp server Pin
LCI23-Jun-06 8:15
LCI23-Jun-06 8:15 
AnswerRe: accessing an ftp server [modified] Pin
LCI23-Jun-06 10:39
LCI23-Jun-06 10:39 
QuestionTrapping the Mouse Pin
Scott P. Chapman23-Jun-06 7:42
Scott P. Chapman23-Jun-06 7:42 
QuestionNetscape plugin question (C++) Pin
Dennis Gourjii23-Jun-06 7:14
Dennis Gourjii23-Jun-06 7:14 
Questiontwo toolBars side by side Pin
LeeeNN23-Jun-06 7:14
LeeeNN23-Jun-06 7:14 
AnswerRe: two toolBars side by side [modified] Pin
ovidiucucu24-Jun-06 6:33
ovidiucucu24-Jun-06 6:33 
// NOTE: this is just a draft example to show the idea
class CMainFrame : public CMDIFrameWnd
{
// ...
   CToolBar    m_wndToolBar;
   CToolBar    m_wndToolBar2;
// ...
};

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
// ... create and other blah-blahs ...

   m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
   EnableDocking(CBRS_ALIGN_ANY);

   DockControlBar(&m_wndToolBar);

   RecalcLayout();
   
   CRect rect;
   m_wndToolBar.GetWindowRect(rect);
   rect.OffsetRect(rect.right, 0);

   m_wndToolBar2.EnableDocking(CBRS_ALIGN_ANY);
   DockControlBar(&m_wndToolBar2, AFX_IDW_DOCKBAR_TOP, rect);

   return 0;
}


Ovidiu Cucu
Microsoft MVP - Visual C++

-- modified at 12:34 Saturday 24th June, 2006
GeneralRe: two toolBars side by side Pin
LeeeNN24-Jun-06 13:12
LeeeNN24-Jun-06 13:12 
Questionmodules Pin
Tara1423-Jun-06 5:55
Tara1423-Jun-06 5:55 
AnswerRe: modules Pin
Jun Du23-Jun-06 5:56
Jun Du23-Jun-06 5:56 
QuestionRe: modules Pin
Tara1423-Jun-06 6:00
Tara1423-Jun-06 6:00 
AnswerRe: modules Pin
Zac Howland23-Jun-06 6:08
Zac Howland23-Jun-06 6:08 
GeneralRe: modules Pin
Tara1423-Jun-06 6:18
Tara1423-Jun-06 6:18 
GeneralRe: modules Pin
Zac Howland23-Jun-06 6:22
Zac Howland23-Jun-06 6:22 
AnswerRe: modules Pin
Jun Du23-Jun-06 6:13
Jun Du23-Jun-06 6:13 
AnswerRe: modules Pin
David Crow23-Jun-06 6:28
David Crow23-Jun-06 6:28 
GeneralRe: modules Pin
Tara1423-Jun-06 6:33
Tara1423-Jun-06 6:33 
GeneralRe: modules Pin
Jun Du23-Jun-06 7:05
Jun Du23-Jun-06 7:05 
GeneralRe: modules Pin
Tara1423-Jun-06 7:44
Tara1423-Jun-06 7:44 
GeneralRe: modules Pin
David Crow23-Jun-06 7:23
David Crow23-Jun-06 7:23 
QuestionChange Display mode??? Pin
Lord_Vader23-Jun-06 4:52
Lord_Vader23-Jun-06 4:52 
AnswerRe: Change Display mode??? Pin
Zac Howland23-Jun-06 5:41
Zac Howland23-Jun-06 5:41 
AnswerRe: Change Display mode??? Pin
Steve Echols23-Jun-06 5:41
Steve Echols23-Jun-06 5:41 
GeneralRe: Change Display mode??? Pin
Lord_Vader23-Jun-06 7:21
Lord_Vader23-Jun-06 7: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.