Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTracking Download Pin
Knight Rider30-May-08 23:23
Knight Rider30-May-08 23:23 
AnswerRe: Tracking Download Pin
Rajesh R Subramanian31-May-08 0:58
professionalRajesh R Subramanian31-May-08 0:58 
GeneralRe: Tracking Download Pin
zafersavas31-May-08 1:24
zafersavas31-May-08 1:24 
GeneralRe: Tracking Download Pin
Rajesh R Subramanian31-May-08 1:40
professionalRajesh R Subramanian31-May-08 1:40 
AnswerCP Ignore Pin
leckey31-May-08 16:39
leckey31-May-08 16:39 
GeneralRe: CP Ignore Pin
Rajesh R Subramanian31-May-08 21:46
professionalRajesh R Subramanian31-May-08 21:46 
GeneralRe: CP Ignore Pin
ThatsAlok20-Jul-09 1:26
ThatsAlok20-Jul-09 1:26 
QuestionToolbars in VC++ Pin
Vilas Tamhane30-May-08 23:22
Vilas Tamhane30-May-08 23:22 
All my hidden toolbars are docked, if one is already docked, after the commands Print or Print Preview
Project MFC AppWizard(exe)
16 toolbars are created in the main frame, with code as follows,

if (!m_wndStiffenerBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | NULL | CBRS_TOP| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||!m_wndStiffenerBar.LoadToolBar(IDR_STIFFENER))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}

m_wndStiffenerBar.EnableDocking(CBRS_ALIGN_ANY);

EnableDocking(CBRS_ALIGN_ANY);

DockControlBar(&m_wndStiffenerBar);
Like this toolbar, as shown above, all are initially hiddens
//Toolbars can be docked with menu command, as follows

void CMainFrame::OnMoveStiffener()
{
// TODO: Add your command handler code here
BOOL bVisible;
bVisible=((m_wndStiffenerBar.GetStyle() & WS_VISIBLE)!=0);
ShowControlBar(&m_wndStiffenerBar,!bVisible,FALSE);
RecalcLayout();

}

void CMainFrame::OnUpdateMoveStiffener(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
pCmdUI->SetCheck(((m_wndStiffenerBar.GetStyle() & WS_VISIBLE)!=0));

}
The code is standard and works well but if a single toolbar is docked and if I give Print preview command, all the 16 toolbars, which I have created with similar code as above, are docked one below the other. If I hide all toolbar then this does not happen with Print command.
I will be grateful if you can help.
QuestionUse of & in caption of controls. Pin
Le@rner30-May-08 23:13
Le@rner30-May-08 23:13 
QuestionTo make desktop parent Pin
krishnan.s30-May-08 23:06
krishnan.s30-May-08 23:06 
AnswerDON'T DO IT! Pin
Baltoro31-May-08 12:17
Baltoro31-May-08 12:17 
AnswerRe: To make desktop parent Pin
ThatsAlok20-Jul-09 1:25
ThatsAlok20-Jul-09 1:25 
QuestionDisable/Enabling of Radio button Pin
sunny_vc30-May-08 21:23
sunny_vc30-May-08 21:23 
AnswerRe: Disable/Enabling of Radio button Pin
Jijo.Raj30-May-08 23:07
Jijo.Raj30-May-08 23:07 
AnswerRe: Disable/Enabling of Radio button Pin
Rajkumar R30-May-08 23:08
Rajkumar R30-May-08 23:08 
GeneralOT + Offtopic Pin
Rajesh R Subramanian31-May-08 1:14
professionalRajesh R Subramanian31-May-08 1:14 
GeneralRe: OT + Offtopic Pin
Rajkumar R31-May-08 22:22
Rajkumar R31-May-08 22:22 
GeneralRe: OT + Offtopic Pin
Rajesh R Subramanian1-Jun-08 0:26
professionalRajesh R Subramanian1-Jun-08 0:26 
QuestionGetDefaultConnect() in CRecordset? Pin
Le@rner30-May-08 19:30
Le@rner30-May-08 19:30 
AnswerCP NOTE Pin
leckey31-May-08 16:42
leckey31-May-08 16:42 
AnswerRe: GetDefaultConnect() in CRecordset? Pin
Mark Salsbery2-Jun-08 7:15
Mark Salsbery2-Jun-08 7:15 
GeneralRe: GetDefaultConnect() in CRecordset? Pin
Le@rner29-Jun-08 23:19
Le@rner29-Jun-08 23:19 
GeneralRe: GetDefaultConnect() in CRecordset? Pin
Mark Salsbery30-Jun-08 6:05
Mark Salsbery30-Jun-08 6:05 
QuestionHBITMAP handle Pin
trioum30-May-08 19:12
trioum30-May-08 19:12 
AnswerRe: HBITMAP handle Pin
Rajkumar R30-May-08 23:02
Rajkumar R30-May-08 23:02 

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.