Click here to Skip to main content
15,921,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Change Language bar Programmatically Pin
hamidreza_buddy11-Feb-07 0:37
hamidreza_buddy11-Feb-07 0:37 
AnswerRe: Change Language bar Programmatically Pin
Hamid_RT8-Feb-07 7:22
Hamid_RT8-Feb-07 7:22 
Questionhow can i do real time robot simulation with opengl?? Pin
Mir_As8-Feb-07 6:51
Mir_As8-Feb-07 6:51 
AnswerRe: how can i do real time robot simulation with opengl?? Pin
Cedric Moonen8-Feb-07 7:32
Cedric Moonen8-Feb-07 7:32 
QuestionCould you tell me how to implement a special splitter window? Pin
YUNAJAPAN8-Feb-07 6:51
YUNAJAPAN8-Feb-07 6:51 
AnswerRe: Could you tell me how to implement a special splitter window? Pin
Mark Salsbery8-Feb-07 8:25
Mark Salsbery8-Feb-07 8:25 
GeneralRe: Could you tell me how to implement a special splitter window? Pin
YUNAJAPAN9-Feb-07 0:11
YUNAJAPAN9-Feb-07 0:11 
GeneralRe: Could you tell me how to implement a special splitter window? Pin
Mark Salsbery9-Feb-07 5:50
Mark Salsbery9-Feb-07 5:50 
You should only need to respond to WM_SIZE in the frame window class of the window containing the
splitter wnd, something like
void CMyFrameWnd::OnSize(UINT nType, int cx, int cy) 
{
   CFrameWnd::OnSize(nType, cx, cy);
 
   pSplitterWnd->SetColumnInfo(...);
   pSplitterWnd->RecalcLayout();
}

RecalcLayout() will change the view sizes - you don't need to do that (it happens in
CSplitterWnd::OnSize(), where RecalcLayout() is called again).

You shouldn't be handling WM_SIZE in SplitterWnd unless you are sure to call the base class.

You can also try (in the above example code) getting the client rect and calculating the width
of column 0 (clientrect.Width() - desiredwidthofcolumn1) and using SetColumnInfo() on column 0
instead of column 1. That works for me no problems.
GeneralRe: Could you tell me how to implement a special splitter window? Pin
YUNAJAPAN9-Feb-07 19:58
YUNAJAPAN9-Feb-07 19:58 
GeneralRe: Could you tell me how to implement a special splitter window? Pin
Mark Salsbery10-Feb-07 5:32
Mark Salsbery10-Feb-07 5:32 
QuestionVS 2005 vs. VS. NET 2003 Pin
Alessandra778-Feb-07 6:50
Alessandra778-Feb-07 6:50 
AnswerRe: VS 2005 vs. VS. NET 2003 Pin
pnpfriend8-Feb-07 7:03
pnpfriend8-Feb-07 7:03 
AnswerRe: VS 2005 vs. VS. NET 2003 Pin
Michael Dunn8-Feb-07 8:36
sitebuilderMichael Dunn8-Feb-07 8:36 
AnswerRe: VS 2005 vs. VS. NET 2003 Pin
#realJSOP8-Feb-07 23:39
professional#realJSOP8-Feb-07 23:39 
Questionproblem After Upgrading from VS 2003 project to VS 2005! [modified] Pin
pnpfriend8-Feb-07 6:46
pnpfriend8-Feb-07 6:46 
AnswerRe: problem After Upgrading from VS 2003 project to VS 2005! Pin
Mark Salsbery8-Feb-07 8:47
Mark Salsbery8-Feb-07 8:47 
GeneralRe: problem After Upgrading from VS 2003 project to VS 2005! Pin
pnpfriend8-Feb-07 11:56
pnpfriend8-Feb-07 11:56 
GeneralRe: problem After Upgrading from VS 2003 project to VS 2005! Pin
Mark Salsbery8-Feb-07 12:16
Mark Salsbery8-Feb-07 12:16 
GeneralRe: problem After Upgrading from VS 2003 project to VS 2005! Pin
pnpfriend9-Feb-07 4:36
pnpfriend9-Feb-07 4:36 
GeneralRe: problem After Upgrading from VS 2003 project to VS 2005! Pin
Mark Salsbery9-Feb-07 5:37
Mark Salsbery9-Feb-07 5:37 
GeneralRe: problem After Upgrading from VS 2003 project to VS 2005! Pin
pnpfriend9-Feb-07 6:57
pnpfriend9-Feb-07 6:57 
QuestionWindows Standards Compliance Pin
vipin_nvk8-Feb-07 5:43
vipin_nvk8-Feb-07 5:43 
AnswerRe: Windows Standards Compliance Pin
James R. Twine8-Feb-07 6:24
James R. Twine8-Feb-07 6:24 
GeneralRe: Windows Standards Compliance Pin
vipin_nvk8-Feb-07 7:00
vipin_nvk8-Feb-07 7:00 
QuestionHow big can be executable? Pin
oleg638-Feb-07 4:50
professionaloleg638-Feb-07 4:50 

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.