Write Text on child window - SDI application
-
Hello Everybody, I have created one SDI Application with one dialog - having some controls. In that, if I click a button, I want to show a child window and with the following code, I am getting that fine.
CMainFrame *pMainFrm = ((CMainFrame*)(AfxGetApp()->m_pMainWnd));
CFrameWnd *pFrame = new CFrameWnd;
RECT rect;
pFrame->Create(NULL,_T("Solution"), WS_OVERLAPPEDWINDOW ,rect,this);
pFrame->ModifyStyle(WS_CAPTION + WS_OVERLAPPEDWINDOW , WS_BORDER,SWP_NOMOVE +SWP_NOZORDER );pFrame->InitialUpdateFrame(pMainFrm->GetActiveDocument(),TRUE); pFrame->SetWindowPos(&CWnd::wndTopMost,100,200,1000,400,SWP\_SHOWWINDOW); pFrame->ActivateFrame(SW\_SHOWNORMAL);
Now, I would like to write some text on that child window. Any suggestions? I tried in google also. Thanks in advance, A. Gopinath.
-
Hello Everybody, I have created one SDI Application with one dialog - having some controls. In that, if I click a button, I want to show a child window and with the following code, I am getting that fine.
CMainFrame *pMainFrm = ((CMainFrame*)(AfxGetApp()->m_pMainWnd));
CFrameWnd *pFrame = new CFrameWnd;
RECT rect;
pFrame->Create(NULL,_T("Solution"), WS_OVERLAPPEDWINDOW ,rect,this);
pFrame->ModifyStyle(WS_CAPTION + WS_OVERLAPPEDWINDOW , WS_BORDER,SWP_NOMOVE +SWP_NOZORDER );pFrame->InitialUpdateFrame(pMainFrm->GetActiveDocument(),TRUE); pFrame->SetWindowPos(&CWnd::wndTopMost,100,200,1000,400,SWP\_SHOWWINDOW); pFrame->ActivateFrame(SW\_SHOWNORMAL);
Now, I would like to write some text on that child window. Any suggestions? I tried in google also. Thanks in advance, A. Gopinath.