I am trying to display text on child windows. I made a handler for double clicks to display "hello world" on the current window, but it doesn't work. I have tried both DrawText and TextOut functions.
Thanks for any help.Code:void CMDITest1View::OnLButtonDblClk(UINT nFlags, CPoint point) { CDC* dc; char msg[] = "Hello World"; dc = GetDC(); dc->TextOut(0, 0, msg, -1); return; }