Click here to Skip to main content
15,888,301 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Handle enter key in Edit control MFC Pin
thanh_bkhn21-May-13 16:52
professionalthanh_bkhn21-May-13 16:52 
Questionhow to hook WM_CLOSE message on all process Pin
Member 1006652320-May-13 20:34
Member 1006652320-May-13 20:34 
AnswerRe: how to hook WM_CLOSE message on all process Pin
Richard MacCutchan20-May-13 22:39
mveRichard MacCutchan20-May-13 22:39 
GeneralRe: how to hook WM_CLOSE message on all process Pin
Member 1006652321-May-13 0:29
Member 1006652321-May-13 0:29 
GeneralRe: how to hook WM_CLOSE message on all process Pin
Jochen Arndt21-May-13 2:23
professionalJochen Arndt21-May-13 2:23 
GeneralRe: how to hook WM_CLOSE message on all process Pin
Richard MacCutchan21-May-13 2:49
mveRichard MacCutchan21-May-13 2:49 
AnswerRe: how to hook WM_CLOSE message on all process Pin
Erudite_Eric23-May-13 1:14
Erudite_Eric23-May-13 1:14 
QuestionWrite Text on child window - SDI application Pin
tagopi20-May-13 19:43
tagopi20-May-13 19:43 
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.

C++
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.
AnswerRe: Write Text on child window - SDI application Pin
Richard MacCutchan20-May-13 22:38
mveRichard MacCutchan20-May-13 22:38 
QuestionVC++ Crashing? Pin
macklinbob20-May-13 9:55
macklinbob20-May-13 9:55 
AnswerRe: VC++ Crashing? Pin
dusty_dex20-May-13 12:00
dusty_dex20-May-13 12:00 
GeneralRe: VC++ Crashing? Pin
macklinbob20-May-13 15:21
macklinbob20-May-13 15:21 
SuggestionRe: VC++ Crashing? Pin
«_Superman_»20-May-13 16:02
professional«_Superman_»20-May-13 16:02 
GeneralRe: VC++ Crashing? Pin
macklinbob20-May-13 19:27
macklinbob20-May-13 19:27 
GeneralRe: VC++ Crashing? Pin
«_Superman_»20-May-13 19:36
professional«_Superman_»20-May-13 19:36 
GeneralRe: VC++ Crashing? Pin
dusty_dex20-May-13 21:29
dusty_dex20-May-13 21:29 
GeneralRe: VC++ Crashing? Pin
David Crow21-May-13 5:19
David Crow21-May-13 5:19 
QuestionVideo output gets corrupted. Displays Grey colour instead of actual Video colors.? Pin
mbatra3120-May-13 2:06
mbatra3120-May-13 2:06 
AnswerRe: Video output gets corrupted. Displays Grey colour instaed of actual Video colours.? Pin
dusty_dex20-May-13 2:47
dusty_dex20-May-13 2:47 
QuestionWhat exactly is “External Dependencies” as used in MFC DLL wizard? Pin
Vaclav_19-May-13 7:30
Vaclav_19-May-13 7:30 
AnswerRe: What exactly is “External Dependencies” as used in MFC DLL wizard? Pin
«_Superman_»19-May-13 15:57
professional«_Superman_»19-May-13 15:57 
GeneralRe: What exactly is “External Dependencies” as used in MFC DLL wizard? Pin
Vaclav_21-May-13 6:02
Vaclav_21-May-13 6:02 
QuestionIMPLEMENT_RUNTIMECLASS_T Pin
john563218-May-13 21:38
john563218-May-13 21:38 
GeneralRe: IMPLEMENT_RUNTIMECLASS_T Pin
Richard MacCutchan19-May-13 1:19
mveRichard MacCutchan19-May-13 1:19 
QuestionButton Ownerdraw - Transparency Issue Pin
Jijo.Raj18-May-13 17:16
Jijo.Raj18-May-13 17:16 

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.