Click here to Skip to main content
16,007,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Debugging multiple processes within a visual studio solution Pin
«_Superman_»23-Nov-10 7:16
professional«_Superman_»23-Nov-10 7:16 
QuestionListing DLL Exports Pin
softwaremonkey23-Nov-10 5:23
softwaremonkey23-Nov-10 5:23 
AnswerRe: Listing DLL Exports PinPopular
Eugen Podsypalnikov23-Nov-10 5:54
Eugen Podsypalnikov23-Nov-10 5:54 
GeneralRe: Listing DLL Exports Pin
softwaremonkey23-Nov-10 6:09
softwaremonkey23-Nov-10 6:09 
AnswerRe: Listing DLL Exports Pin
«_Superman_»23-Nov-10 7:21
professional«_Superman_»23-Nov-10 7:21 
AnswerRe: Listing DLL Exports Pin
Luc Pattyn23-Nov-10 8:23
sitebuilderLuc Pattyn23-Nov-10 8:23 
QuestionPutting CMFCToolBar in CFormView problem Pin
Harsh Shankar23-Nov-10 1:13
Harsh Shankar23-Nov-10 1:13 
AnswerRe: Putting CMFCToolBar in CFormView problem Pin
Eugen Podsypalnikov23-Nov-10 5:45
Eugen Podsypalnikov23-Nov-10 5:45 
May be also done as following Smile | :)
// class CDiaFrame : public CFrameWnd

int CDiaFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
  if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
    return -1;

  ModifyStyle(0, WS_CLIPCHILDREN);
  ModifyStyleEx(WS_EX_CLIENTEDGE, 0);

  m_cToolBar.Create(this, WS_CHILD | WS_VISIBLE | CBRS_TOP, 1);
  m_cToolBar.SetPaneStyle(m_cToolBar.GetPaneStyle() | CBRS_TOOLTIPS | CBRS_FLYBY);
  m_cToolBar.SetPaneStyle(m_cToolBar.GetPaneStyle() & ~(CBRS_GRIPPER | CBRS_SIZE_DYNAMIC | CBRS_BORDER_TOP | CBRS_BORDER_BOTTOM | CBRS_BORDER_LEFT | CBRS_BORDER_RIGHT));
  m_cToolBar.LoadToolBar(IDR_DIATOOLBAR, 0, 0, TRUE);

  return 0;
}

void CDiaFrame::OnSize(UINT nType, int cx, int cy)
{
  CFrameWnd::OnSize(nType, cx, cy);

  static CSize sizeToolBar(m_cToolBar.CalcFixedLayout(TRUE, TRUE));

  CRect crClient;
  GetClientRect(crClient);

  crClient.bottom = sizeToolBar.cy;
  m_cToolBar.MoveWindow(crClient);
}

And then - create/size this frame in a docable pane.

Of course you have to define the frame's reactions/updates for all commands from your bar as well Smile | :)
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap. Smile | :)

QuestionRe: Putting CMFCToolBar in CFormView problem Pin
Harsh Shankar24-Nov-10 2:54
Harsh Shankar24-Nov-10 2:54 
AnswerRe: Putting CMFCToolBar in CFormView problem Pin
Eugen Podsypalnikov24-Nov-10 21:42
Eugen Podsypalnikov24-Nov-10 21:42 
QuestionRequired resource [modified] Pin
MsmVc22-Nov-10 22:59
MsmVc22-Nov-10 22:59 
AnswerRe: Required resource Pin
Richard MacCutchan22-Nov-10 23:34
mveRichard MacCutchan22-Nov-10 23:34 
GeneralRe: Required resource Pin
MsmVc23-Nov-10 0:30
MsmVc23-Nov-10 0:30 
GeneralRe: Required resource Pin
Richard MacCutchan23-Nov-10 0:47
mveRichard MacCutchan23-Nov-10 0:47 
GeneralRe: Required resource Pin
MsmVc23-Nov-10 0:49
MsmVc23-Nov-10 0:49 
GeneralRe: Required resource Pin
Richard MacCutchan23-Nov-10 1:44
mveRichard MacCutchan23-Nov-10 1:44 
GeneralRe: Required resource Pin
MsmVc23-Nov-10 17:34
MsmVc23-Nov-10 17:34 
GeneralRe: Required resource Pin
Richard MacCutchan23-Nov-10 21:33
mveRichard MacCutchan23-Nov-10 21:33 
QuestionRe: Required resource Pin
David Crow23-Nov-10 3:06
David Crow23-Nov-10 3:06 
QuestionRe: Required resource Pin
David Crow23-Nov-10 3:08
David Crow23-Nov-10 3:08 
AnswerRe: Required resource Pin
Richard MacCutchan23-Nov-10 3:21
mveRichard MacCutchan23-Nov-10 3:21 
QuestionProblem Initialising derived class Pin
Still learning how to code22-Nov-10 22:33
Still learning how to code22-Nov-10 22:33 
QuestionRe: Problem Initialising derived class Pin
CPallini22-Nov-10 22:43
mveCPallini22-Nov-10 22:43 
AnswerRe: Problem Initialising derived class Pin
Still learning how to code23-Nov-10 0:14
Still learning how to code23-Nov-10 0:14 
GeneralRe: Problem Initialising derived class Pin
CPallini23-Nov-10 0:40
mveCPallini23-Nov-10 0:40 

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.