Red de conocimiento informático - Problemas con los teléfonos móviles - Código fuente de Windows

Código fuente de Windows

#¿Incluir? ltstdio.h gt

#¿Contiene? ltwindows.h gt

#pragma? comentario(lib,? "user32.lib")

#pragma? Comentario(lib, ?" gdi32.lib ")

LRESULTADO? ¿Llamar de vuelta? WndProc(HWND?h,?UINT?m,?WPARAM?w,?LPARAM?l)

{

¿Conmutador(m)? {

¿Caso? WM_NCDESTROY:

PostQuitMessage(0);

¿Volver? 0;

¿Caso? WM_PAINT:? {

¿HDC? ¿CORRIENTE CONTINUA? =?GetDC(h);

Elipse(DC, 0,?0,?200,?200);

ReleaseDC(h, DC);

ValidateRect(h, 0);

¿Regresión? 0;

}

Predeterminado:

¿Regresión? DefWindowProc(h, m, w, l);

}

}

int? ¿APENTRÍA? WinMain(¿instancia hin? ¿HINSTANCE? hPrev,? LPSTR? szCmd,? INT? nShow)

WNDCLASS? WC;

GetClassInfo(hInst, text(" #32770 "),? ampWC);

wc.cbClsExtra? =?0;

wc.cbWndExtra? =?0;

wc.lpszNombreClase? =?TEXT(" DC ");

wc.lpfnWndProc? =?WndProc

wc.hbrBackground? =?(HBRUSH)? color_window;

registrar clase(amp;WC);

HWND? h? =?CreateWindow(TEXT("dc "),?TEXT ("círculo "),?WS_OVERLAPPEDWINDOW,

CW_USEDEFAULT,?CW_USEDEFAULT,?300,?300,?NULL,?NULL,?Hingster ? NULL );

Mostrar ventana (h, SW_show normal);

Actualizar ventana (h); m;

while(GetMessage(amp;m,?0,?0,?0)?gt?0)?{

Mensaje de traducción (ampm);

mensaje de envío(amp;m);

}

¿Devolver? m.wParam

}aquí.