Displaying 2 results from an estimated 2 matches for "cpaintdc".
Did you mean:
paintdc
2008 Jan 24
2
Problems when compiling MFC application
...gt;
<font size="2">hello.cpp:49: error: `rect' was not declared in this scope</font><br>
<font size="2">hello.cpp:49: error: `GetClientRect' was not declared in this scope</font><br>
<font size="2">hello.cpp:51: error: `CPaintDC' was not declared in this scope</font><br>
<font size="2">hello.cpp:51: error: expected `;' before "dc"</font><br>
<font size="2">hello.cpp:52: error: `dc' was not declared in this scope</font><br>
<font si...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...estroy();
}
// If you add a minimize button to your dialog, you will need the code below
// to draw the icon. For MFC applications using the document/view model,
// this is automatically done for you by the framework.
void CGUIDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting
SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);
// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);...