Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <windows.h>
- #include <iostream>
- using namespace std;
- int main()
- {
- HWND hwnd = GetConsoleWindow();
- HDC dc = GetDC(hwnd);
- SelectObject(dc, GetStockObject(DC_BRUSH));
- SetDCBrushColor(dc, RGB(255, 255, 255));
- Rectangle(dc, 0, 0, 200, 100);
- SetDCBrushColor(dc, RGB(0, 0, 255));
- Rectangle(dc, 0, 100, 200, 200);
- SetDCBrushColor(dc, RGB(255, 0, 0));
- Rectangle(dc, 0, 200, 200, 300);
- cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement