Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRE: How do I safely shut down a thread, when I can't send a CEvent? Pin
Raghav Gupta8-Feb-00 12:53
Raghav Gupta8-Feb-00 12:53 
GeneralTab control or property sheets Pin
Matt4-Feb-00 12:29
Matt4-Feb-00 12:29 
GeneralGetting GUID from a control Pin
Brad Bruce4-Feb-00 7:44
Brad Bruce4-Feb-00 7:44 
GeneralRE: Getting GUID from a control Pin
Ghazi Wadi16-Feb-00 11:55
sussGhazi Wadi16-Feb-00 11:55 
QuestionHow Do I use VirtualListView (LVN_GETDISPINFO) with CRecordset? Pin
apavlenko3-Feb-00 18:41
apavlenko3-Feb-00 18:41 
AnswerRE: How Do I use VirtualListView (LVN_GETDISPINFO) with CRecordset? Pin
apavlenko3-Feb-00 19:16
apavlenko3-Feb-00 19:16 
Generallock toolbar position after docking Pin
Anonymous3-Feb-00 3:42
suss Anonymous3-Feb-00 3:42 
GeneralRE: lock toolbar position after docking Pin
Cristi Posea4-Feb-00 0:15
Cristi Posea4-Feb-00 0:15 
You have 2 options:
1. Implement state persistence - in CMainFrame::OnCreate() call LoadBarState(), and in OnClose() or DestroyWindow() call SaveBarState(). You have to make sure the toolbars have different IDs. (see the toolbars & docking windows section for related info).
2. Derive your own classes from CToolbar or whatever, and block WM_LBUTTONDOWN and WM_LBUTTONDBLCLK (handle the messages and do nothing in the handlers' implementations).
The drawback is thath the user will no longer able to drag the toolbars around, nor to float them, but you can control them programmatically (using CFrameWnd's ShowControlBar(), DockControlBar(), FloatControlBar(), etc.).
Another problem of this approach is that the bars will be arranged on different rows if the user resizes the main window in a way the second toolbar is completely invisible.
Personally, I preffer (1).

Cristi

==================
The original message was:

how do i lock the position of two toolbars after docking them side by side?
GeneralRE: lock toolbar position after docking Pin
Jesse Ezell5-Feb-00 19:13
Jesse Ezell5-Feb-00 19:13 
QuestionHow Do I Get/Set Mouse Sensitivity? Pin
Anonymous1-Feb-00 11:05
suss Anonymous1-Feb-00 11:05 
GeneralCreateFileMapping - Open it... Pin
braulio31-Jan-00 22:26
braulio31-Jan-00 22:26 
GeneralODBC Recordset Indexes Pin
Henry Venn31-Jan-00 21:51
Henry Venn31-Jan-00 21:51 
QuestionHow to insert picture in CRichEditView ? !!!! Pin
Roma31-Jan-00 4:23
Roma31-Jan-00 4:23 
QuestionIPX and CSocket? Pin
Topher30-Jan-00 13:02
Topher30-Jan-00 13:02 
GeneralANNOUNCEMENT: New C/C++ source beautifier Pin
HPSI29-Jan-00 19:39
HPSI29-Jan-00 19:39 
GeneralProblems with Visual C++ Version 6 Pin
Subby Rajan29-Jan-00 7:15
sussSubby Rajan29-Jan-00 7:15 
GeneralRE: Problems with Visual C++ Version 6 Pin
Michael Owen31-Jan-00 9:07
Michael Owen31-Jan-00 9:07 
GeneralRE: RE: Problems with Visual C++ Version 6 Pin
StasK2-Feb-00 2:55
suss StasK2-Feb-00 2:55 
QuestionHow do I allow ODBC access my data Pin
Anonymous28-Jan-00 6:27
suss Anonymous28-Jan-00 6:27 
GeneralLost debugg information Pin
martin27-Jan-00 21:25
suss martin27-Jan-00 21:25 
GeneralRE: Lost debugg information Pin
Anonymous1-Feb-00 0:46
suss Anonymous1-Feb-00 0:46 
GeneralAdding controls to a CTabCtrl Pin
Frank Deo27-Jan-00 9:02
Frank Deo27-Jan-00 9:02 
GeneralRE: Adding controls to a CTabCtrl Pin
Nick Hodapp29-Jan-00 11:34
sitebuilderNick Hodapp29-Jan-00 11:34 
GeneralCtabctrl - change tab name on double click Pin
chrisg27-Jan-00 5:26
chrisg27-Jan-00 5:26 
GeneralCreating DLLs in VC for use in VB Pin
Bagyalakshmi SN26-Jan-00 20:18
sussBagyalakshmi SN26-Jan-00 20:18 

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.