From: Peter Olcott on 23 Mar 2010 15:54 What are the options for directly writing text to a DialogBox?
From: Seetharam on 23 Mar 2010 16:37 Where in a a dialog box? Static text fields? Or edit boxes on the dialog? -Seetharam
From: Peter Olcott on 23 Mar 2010 16:45 "Seetharam" <smisro(a)gmail.com> wrote in message news:c6ec499c-0a32-478d-b738-3465f7a6a29d(a)l25g2000yqd.googlegroups.com... > Where in a a dialog box? Static text fields? Or edit > boxes on the > dialog? > > -Seetharam > arbitrary locations.
From: Peter Olcott on 23 Mar 2010 17:34 "Peter Olcott" <NoSpam(a)OCR4Screen.com> wrote in message news:JpqdnVXVF9zAgTTWnZ2dnUVZ_iydnZ2d(a)giganews.com... > What are the options for directly writing text to a > DialogBox? > Now I only need a way to convert this from clumsy Win32 to cleaner MFC: RECT rect; HDC hdc; PAINTSTRUCT ps; if (!(hdc = ::BeginPaint(this->m_hWnd, &ps) ) ) ::MessageBox(this->m_hWnd, L"BeginPaint() failed", L"error", NULL); SetTextColor(hdc, RGB(0, 0, 0) ); SetBkColor(hdc, RGB(245, 245, 245) ); ::GetClientRect(this->m_hWnd, &rect); if (!TextOut(hdc, 45, 45, L"this is a test", 14) ) ::MessageBox(this->m_hWnd, L"TextOut() failed", L"error", NULL); ::EndPaint(this->m_hWnd, &ps);
From: David Webber on 23 Mar 2010 19:24
"Peter Olcott" <NoSpam(a)OCR4Screen.com> wrote in message news:Sv2dncNCqILttTTWnZ2dnUVZ_jOdnZ2d(a)giganews.com... > > "Seetharam" <smisro(a)gmail.com> wrote in message > news:c6ec499c-0a32-478d-b738-3465f7a6a29d(a)l25g2000yqd.googlegroups.com... >> Where in a a dialog box? Static text fields? Or edit boxes on the >> dialog? >> >> -Seetharam >> > > arbitrary locations. Put the text in a static control and move the control to where you want the text to go? Dave -- David Webber Mozart Music Software http://www.mozart.co.uk For discussion and support see http://www.mozart.co.uk/mozartists/mailinglist.htm |