Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is wrong with this?

Status
Not open for further replies.

Enges

Programmer
Nov 13, 2005
5
US
I am trying to create a simple window, and after compilation, it states that there is something wrong with this:

LRESULT CALLBACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam)
{
HDC hDC;
PAINTSTRUCT ps;
RECT rect;

switch (msg)
{
case WM_PAINT:
//Draw some text centered in the client area of the main window
hDC = BeginPaint(hWindow, &ps);
GetClientRect(hWindow, &rect);
DrawText(hDC, TEXT("This is a skeleton application!"), -1, &rect,
DT_SINGLELINE | DT_CENTER | DT_ VCENTER);
EndPaint(hWindow, &ps);
return 0;

case WM_DESTROY:
//Exit the application
PostQuitMessage(0);
return 0;
}
return DefWindowProc(hWindow, msg, wParam, lParam);
}


The error says that DT is undeclared. What can I do to fix this?
 
Heh, nevermind. There was just a space somewhere in there where there should not have been. It was a stupid error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top