Hi,
I am very new to Win32 programming.I have the following working progarm which displays a small simple win32 app
(window)
Now I want to write and display a text "THIS IS MY FIRST WINDOW"
I need to use TEXTOUT out function but not sure where to ?
will anyone please help me with that so I can play with the codes
Thanks

PHP Code:
#include <windows.h>
#include <string.h>

const char *CLASSNAME "Tutorial", *WINNAME "Tutorial 2 - The Window";

LRESULT CALLBACK WndProc(HWND hWndunsigned int iMessageWPARAM wParamLPARAM lParam);

int WINAPI WinMain(HINSTANCE hInstanceHINSTANCELPSTRint nCmdShow)
{
  
HWND hWnd;
  
MSG Message;
  
WNDCLASS WndClass;
// NOTE: The memset() here is added to deal with this code crashing on
// WinNT (reported by Girish Deodhar, solution due to him as well)
// The extra include statement is for memset() too...
  
memset(&WndClass0sizeof(WndClass));
  
WndClass.cbClsExtra 0;
  
WndClass.cbWndExtra 0;
// Typecast added. This line generated compiler errors on some
// compilers previously. Thanks goes to Anton Rapoport for the tip.
  
WndClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
  
WndClass.hCursor LoadCursor(NULLIDC_ARROW);
  
WndClass.hIcon LoadIcon(hInstanceNULL);
  
WndClass.hInstance hInstance;
  
WndClass.lpfnWndProc WndProc;
  
WndClass.lpszClassName CLASSNAME;
  
WndClass.style CS_HREDRAW CS_VREDRAW;
  if(!
RegisterClass(&WndClass))
    return 
0;
        
  
hWnd CreateWindow(CLASSNAMEWINNAMEWS_OVERLAPPEDWINDOW,
                      
CW_USEDEFAULTCW_USEDEFAULT300100,
                      
NULLNULLhInstanceNULL);

  
ShowWindow(hWndnCmdShow);
    
  while(
GetMessage(&MessagehWnd00))
  {
    
TranslateMessage(&Message);
    
DispatchMessage(&Message);
  }
  return 
Message.wParam;
}

LRESULT CALLBACK WndProc(HWND hWndUINT iMessageWPARAM wParamLPARAM lParam)
{
  switch(
iMessage)
  {
  case 
WM_CLOSE:
  case 
WM_DESTROY:
    if(
MessageBox(hWnd"Do you really want to quit?""Message"MB_YESNO) == IDYES)
      
PostQuitMessage(0);
    break;
  default:
    return 
DefWindowProc(hWndiMessagewParamlParam);
  }
  return 
0;