Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsending input to window Pin
dene999704-Feb-07 7:35
dene999704-Feb-07 7:35 
AnswerRe: sending input to window Pin
Waldermort4-Feb-07 8:01
Waldermort4-Feb-07 8:01 
GeneralRe: sending input to window Pin
dene999704-Feb-07 8:51
dene999704-Feb-07 8:51 
AnswerRe: sending input to window Pin
Mark Salsbery4-Feb-07 9:32
Mark Salsbery4-Feb-07 9:32 
AnswerRe: sending input to window Pin
ThatsAlok4-Feb-07 21:27
ThatsAlok4-Feb-07 21:27 
AnswerRe: sending input to window Pin
Hamid_RT5-Feb-07 7:06
Hamid_RT5-Feb-07 7:06 
GeneralRe: sending input to window Pin
ThatsAlok6-Feb-07 20:17
ThatsAlok6-Feb-07 20:17 
QuestionWhy don't splitters appear? Pin
neilsolent4-Feb-07 7:05
neilsolent4-Feb-07 7:05 
I am initialising GUI components (in a CMDIFrameWnd) using the code below.
It works fine, except that the CMDIChildWnd child frames are blank at startup. If the user fiddles with the child windows (e.g. stretches them) then the splitter displays immediately appear. What have I missed in the initialisation ?

Confused | :confused:


CMainFrame* pMainFrame = new CMainFrame;

if (! pMainFrame->LoadFrame(IDR_MAINFRAME))
return FALSE;

CCreateContext context;
context.m_pCurrentDoc = NULL;
context.m_pCurrentFrame = NULL;
context.m_pLastView = NULL;
context.m_pNewDocTemplate = NULL;
context.m_pNewViewClass = NULL;

CMDIChildWnd* alertWnd = new CMDIChildWnd;

alertWnd->Create(NULL, "Alerts", WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW, CFrameWnd::rectDefault, pMainFrame);

CSplitterWnd* alertSplitter = new CSplitterWnd;

alertSplitter->CreateStatic(alertWnd, 1, 2, WS_CHILD | WS_VISIBLE, AFX_IDW_PANE_FIRST);

alertSplitter->CreateView(0, 0, RUNTIME_CLASS(CLeftView), CSize(100, 100), &context);
alertSplitter->CreateView(0, 1, RUNTIME_CLASS(CSsfconView), CSize(100, 100), &context);

pMainWnd->ShowWindow(SW_SHOW);
pMainWnd->UpdateWindow();




cheers,
Neil
AnswerRe: Why don't splitters appear? Pin
Mark Salsbery4-Feb-07 8:34
Mark Salsbery4-Feb-07 8:34 
QuestionProgram crashes! Pin
dellthinker4-Feb-07 6:29
dellthinker4-Feb-07 6:29 
AnswerRe: Program crashes! Pin
Waldermort4-Feb-07 6:41
Waldermort4-Feb-07 6:41 
AnswerRe: Program crashes! Pin
Hamid_RT4-Feb-07 7:53
Hamid_RT4-Feb-07 7:53 
Questionhelp working with files memory Pin
van-ux4-Feb-07 6:24
van-ux4-Feb-07 6:24 
AnswerRe: help working with files memory Pin
Waldermort4-Feb-07 6:29
Waldermort4-Feb-07 6:29 
GeneralRe: help working with files memory Pin
van-ux4-Feb-07 6:42
van-ux4-Feb-07 6:42 
AnswerRe: help working with files memory Pin
Mark Salsbery4-Feb-07 8:47
Mark Salsbery4-Feb-07 8:47 
AnswerRe: help working with files memory Pin
Jeffrey Walton4-Feb-07 18:49
Jeffrey Walton4-Feb-07 18:49 
AnswerRe: help working with files memory Pin
Hamid_RT5-Feb-07 7:00
Hamid_RT5-Feb-07 7:00 
QuestionAdding a MFC ODBC Consumer class Pin
okonur4-Feb-07 6:23
okonur4-Feb-07 6:23 
AnswerRe: Adding a MFC ODBC Consumer class Pin
Hamid_RT4-Feb-07 7:49
Hamid_RT4-Feb-07 7:49 
QuestionRe: Adding a MFC ODBC Consumer class Pin
okonur4-Feb-07 8:04
okonur4-Feb-07 8:04 
AnswerRe: Adding a MFC ODBC Consumer class Pin
Hamid_RT4-Feb-07 8:13
Hamid_RT4-Feb-07 8:13 
GeneralRe: Adding a MFC ODBC Consumer class Pin
okonur4-Feb-07 8:17
okonur4-Feb-07 8:17 
GeneralRe: Adding a MFC ODBC Consumer class Pin
Hamid_RT4-Feb-07 8:27
Hamid_RT4-Feb-07 8:27 
GeneralRe: Adding a MFC ODBC Consumer class Pin
okonur4-Feb-07 8:43
okonur4-Feb-07 8:43 

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.