Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncalling com dll from C++ Pin
pnpfriend23-May-07 9:39
pnpfriend23-May-07 9:39 
AnswerRe: calling com dll from C++ Pin
led mike23-May-07 10:23
led mike23-May-07 10:23 
GeneralRe: calling com dll from C++ Pin
pnpfriend24-May-07 6:51
pnpfriend24-May-07 6:51 
GeneralRe: calling com dll from C++ Pin
led mike24-May-07 6:59
led mike24-May-07 6:59 
GeneralRe: calling com dll from C++ Pin
pnpfriend24-May-07 11:17
pnpfriend24-May-07 11:17 
GeneralRe: calling com dll from C++ Pin
led mike25-May-07 5:00
led mike25-May-07 5:00 
GeneralRe: calling com dll from C++ Pin
pnpfriend31-May-07 4:09
pnpfriend31-May-07 4:09 
QuestionsplitterWnd in SDI MFC Pin
gurucplusplus23-May-07 9:18
gurucplusplus23-May-07 9:18 
splitterWnd in SDI MFC 1hr 11mins ago

I create a SDI application in MFC wizard with splitter option. I modified OnCreateClient function to create static splitter into two rows and one column, and further split top row to one row and two columns. The code is simple as below:

CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
mainSplitterWnd.CreateStatic(this, 2, 1) ;
//then the childSplitterWnd of the mainSplitterWnd to
CreateStatic(1,2, WS_CHILD | WS_VISIBLE, mainSplitterWnd.IdFromRowCol(0,0));
//then assign both childSplitterWnd to views
childSplitterWnd.CreateView(0,0,RUNTIME_CLASS(CMyChildLeftView),CSize(500,500),pContext);
childSplitterWnd.CreateView(0,1,RUNTIME_CLASS(CMyChildRighView),CSize(100,100),pContext);
//then assign bottom main frame of mainSplitterWnd
mainSplitterWnd.CreateView(1,0,RUNTIME_CLASS(CMyBottomView),CSize(300,300),pContext);
return TRUE;
}

When I execute the code I only see the middle splitter bar display on the very top
of the main frame, then I have do use the mouse to drag splitter bar down. I don't
understand why I have to do that if I create static splitter. Help!!!!






AnswerRe: splitterWnd in SDI MFC Pin
Nelek23-May-07 19:58
protectorNelek23-May-07 19:58 
GeneralRe: splitterWnd in SDI MFC Pin
gurucplusplus24-May-07 5:44
gurucplusplus24-May-07 5:44 
AnswerRe: splitterWnd in SDI MFC Pin
jhwurmbach23-May-07 22:35
jhwurmbach23-May-07 22:35 
GeneralRe: splitterWnd in SDI MFC Pin
gurucplusplus24-May-07 5:47
gurucplusplus24-May-07 5:47 
GeneralRe: splitterWnd in SDI MFC Pin
jhwurmbach25-May-07 1:10
jhwurmbach25-May-07 1:10 
QuestionMove some functions to a new cpp file [modified] Pin
Johpoke23-May-07 9:13
Johpoke23-May-07 9:13 
AnswerRe: Move some functions to a new cpp file Pin
JudyL_MD23-May-07 9:52
JudyL_MD23-May-07 9:52 
AnswerRe: Move some functions to a new cpp file (Solved) Pin
Johpoke23-May-07 20:57
Johpoke23-May-07 20:57 
QuestionDivX compression Pin
Skywalker200823-May-07 8:42
Skywalker200823-May-07 8:42 
QuestionBase relocating on Vista? Pin
Xero|Hawk23-May-07 6:55
Xero|Hawk23-May-07 6:55 
QuestionC++ Assignment Pin
Dragonalex23-May-07 6:07
Dragonalex23-May-07 6:07 
AnswerRe: C++ Assignment Pin
Hamid_RT23-May-07 6:19
Hamid_RT23-May-07 6:19 
AnswerRe: C++ Assignment Pin
eli1502197923-May-07 6:56
eli1502197923-May-07 6:56 
AnswerRe: C++ Assignment Pin
Michael Dunn23-May-07 13:31
sitebuilderMichael Dunn23-May-07 13:31 
GeneralRe: C++ Assignment Pin
Dragonalex23-May-07 16:35
Dragonalex23-May-07 16:35 
GeneralRe: C++ Assignment Pin
Hamid_RT23-May-07 19:35
Hamid_RT23-May-07 19:35 
AnswerRe: C++ Assignment Pin
Dragonalex24-May-07 6:10
Dragonalex24-May-07 6:10 

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.