Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Maximilien20-Dec-18 2:04
Maximilien20-Dec-18 2:04 
GeneralRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Maximilien20-Dec-18 5:16
Maximilien20-Dec-18 5:16 
GeneralRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Richard MacCutchan20-Dec-18 6:06
mveRichard MacCutchan20-Dec-18 6:06 
AnswerRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Randor 19-Dec-18 14:32
professional Randor 19-Dec-18 14:32 
QuestionMacro analysis - help wanted Pin
Vaclav_18-Dec-18 3:43
Vaclav_18-Dec-18 3:43 
AnswerRe: Macro analysis - help wanted Pin
leon de boer18-Dec-18 6:03
leon de boer18-Dec-18 6:03 
GeneralRe: Macro analysis - help wanted Pin
Vaclav_18-Dec-18 6:44
Vaclav_18-Dec-18 6:44 
GeneralRe: Macro analysis - help wanted Pin
leon de boer18-Dec-18 7:47
leon de boer18-Dec-18 7:47 
GeneralRe: Macro analysis - help wanted Pin
Vaclav_18-Dec-18 13:30
Vaclav_18-Dec-18 13:30 
SuggestionRe: Macro analysis - help wanted Pin
David Crow18-Dec-18 10:04
David Crow18-Dec-18 10:04 
GeneralRe: Macro analysis - help wanted Pin
Vaclav_18-Dec-18 13:32
Vaclav_18-Dec-18 13:32 
QuestionPlacing the dialog bar Pin
manoharbalu17-Dec-18 23:12
manoharbalu17-Dec-18 23:12 
AnswerRe: Placing the dialog bar Pin
Richard MacCutchan17-Dec-18 23:48
mveRichard MacCutchan17-Dec-18 23:48 
GeneralRe: Placing the dialog bar Pin
manoharbalu18-Dec-18 1:42
manoharbalu18-Dec-18 1:42 
GeneralRe: Placing the dialog bar Pin
Richard MacCutchan18-Dec-18 1:54
mveRichard MacCutchan18-Dec-18 1:54 
GeneralRe: Placing the dialog bar Pin
manoharbalu18-Dec-18 1:59
manoharbalu18-Dec-18 1:59 
QuestionRe: Placing the dialog bar Pin
David Crow18-Dec-18 4:19
David Crow18-Dec-18 4:19 
GeneralRe: Placing the dialog bar Pin
Richard MacCutchan18-Dec-18 4:49
mveRichard MacCutchan18-Dec-18 4:49 
GeneralRe: Placing the dialog bar Pin
Richard MacCutchan18-Dec-18 6:28
mveRichard MacCutchan18-Dec-18 6:28 
GeneralRe: Placing the dialog bar Pin
manoharbalu18-Dec-18 22:55
manoharbalu18-Dec-18 22:55 
GeneralRe: Placing the dialog bar Pin
mo149219-Dec-18 0:18
mo149219-Dec-18 0:18 
MFC handles the docking state and sizing of control bars.
Your code does not show that you are docking the control bar; are you?

After creation of m_SysWnd:
m_SysWnd.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY); // CMainFrame enable docking
DockControlBar(&m_wndDlgBar); // CMainFrame dock control bar


As far as moving the bar to a specific location look at CMainFrame::FloatControlBar()
which undocks the controlbar and allows for positioning.
FloatControlBar(&m_SysWnd,CPoint(100,100));


In regards to resizing the bar, you will probably have to provide some implementation of
CDialogBar::CalcFixedLayout() or CDialogBar::CalcDynamicLayout() override which provides size info.

CSize CSysWindow::CalcFixedLayout(BOOL bStretch, BOOL bHorz)
{
if (bStretch) // if not docked stretch to fit
{
// This is a fixed size. You will have to provide your own implementation.
return CSize(100,100);

//return CSize(bHorz ? 32767 : m_sizeDefault.cx,
// bHorz ? m_sizeDefault.cy : 32767);
}
else
return m_sizeDefault;
}


A Google search on these functions may help.

Best regards.

-- modified 19-Dec-18 7:02am.
GeneralRe: Placing the dialog bar Pin
mo149219-Dec-18 1:44
mo149219-Dec-18 1:44 
GeneralRe: Placing the dialog bar Pin
manoharbalu20-Dec-18 2:01
manoharbalu20-Dec-18 2:01 
GeneralRe: Placing the dialog bar Pin
mo149220-Dec-18 12:31
mo149220-Dec-18 12:31 
GeneralRe: Placing the dialog bar Pin
manoharbalu20-Dec-18 17:40
manoharbalu20-Dec-18 17: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.