002
30.12.2004, 12:36 Uhr
~nighthawk
Gast
|
vergeblich^^:
C++: |
#include <conio.h> #include <windows.h>
int main() { HWND hWwnd = FindWindow(0,"paint - Microsoft Visual C++"); ShowWindow(hWwnd,SW_SHOWNORMAL); GetDC(hWwnd); { HDC dc; PAINTSTRUCT ps; dc=BeginPaint(hWwnd,&ps);
MoveToEx(dc,0,0,NULL); LineTo(dc,789,550); MoveToEx(dc,300,0,NULL); LineTo(dc,50,300);
TextOut(dc,100,30,"aha",25);
ValidateRect(hWwnd,NULL); EndPaint(hWwnd,&ps); } getch(); return 0;}
|
irgendwie hat da was nicht geklappt |