
This is a discussion on Some GDI within the C++ forums, part of the Application Development category; what is gdi? sometihng to do with drawing or painting in windows lol a good example #include <windows.h> //WINDOWS FTW ...
| |||||||
| 120 Online | Register | Projects | Products | Members List | Calendar | Today's Posts | Search |
| |||
| Some GDI
what is gdi? sometihng to do with drawing or painting in windows lol a good example #include <windows.h> //WINDOWS FTW #include <iostream.h> //cout,cin all that jazz int main() { HWND window // window handle named window rofl HDC devcon //deviceContext handlenamed devcon rofl again :) window = FindWindow(NULL,"Window Title Here"); //finds a window with that title devcon = GetDC(window); //tell devcon where the context is SetTextColor(devcon,RGB(0,0,0)); //set our text color to black TextOut(devcon,1,1, 'Yay im text on a Window W00t',30); //print thy text UpdateWindow(window); //update the window ReleaseDC(window,devcon); //ALWAYS RELAESE TO PREVENT MEMORY LEAKS } that should help some pplz Last edited by m0u53; 05-29-2007 at 08:44 PM. |
![]() |
| |
| ||||
| Posted By | For | Type | Date | |
| Digg / Programming / Upcoming | This thread | Refback | 06-01-2007 02:43 AM | |
| Digg / Technology / Upcoming | This thread | Refback | 05-31-2007 07:34 PM | |
| Digg - Some GDI | This thread | Refback | 05-31-2007 06:59 PM | |
| Digg / News / Upcoming | This thread | Refback | 05-31-2007 06:54 PM | |
| Digg / News / Upcoming | This thread | Refback | 05-31-2007 06:38 PM | |
| Digg / Programming / Upcoming | This thread | Refback | 05-31-2007 06:38 PM | |