fonic
fonic   Zephyrhills, Florida, United States
 
 
Boss Mode.
Currently Offline
Featured Artwork Showcase
Compile
Featured Artwork Showcase
Desktop
Hello World!
#include <windows.h>

LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) {
if (msg == WM_DESTROY) {
PostQuitMessage(0);
} else if (msg == WM_PAINT) {
PAINTSTRUCT ps;
HDC hdc = BeginPaint(hwnd, &ps);
TextOut(hdc, 50, 50, "Hello World!", 12);
EndPaint(hwnd, &ps);
} else {
return DefWindowProc(hwnd, msg, wp, lp);
}
return 0;
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
WNDCLASS wc = {0};
wc.lpfnWndProc = WndProc;
wc.hInstance = hInstance;
wc.lpszClassName = "HelloWorldClass";

RegisterClass(&wc);

HWND hwnd = CreateWindow("HelloWorldClass", "Hello World", WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 300, 200,
NULL, NULL, hInstance, NULL);

ShowWindow(hwnd, nCmdShow);
UpdateWindow(hwnd);

MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
Recent Activity
63 hrs on record
last played on 14 Apr
5.8 hrs on record
last played on 14 Apr
0.2 hrs on record
last played on 14 Apr
Comments
BLOCKHEAD 7 May, 2023 @ 6:05pm 
Hey broham. good games of cs yesterday. check out Tuesday's Gone by Metallica for some wicked good music, cheers:csgoct::csgogun:
SkyDoesMinecraft 29 Mar, 2023 @ 11:27pm 
aluminum.
SKIWOP 18 Dec, 2020 @ 8:55pm 
typical xenophobic Americans.. You guys think u ruined my day with one CS game LOL, no snowflake is not that easy, yes I like Rick and Morty, Vaporwave and Im from Brazil and what? you are just bad people is very simple, good luck in life.
Janez 16 Mar, 2020 @ 7:38am 
Nice "How to become a Pro Grifball Player" guide! The second (time) I saw the second (order) picture, life became meaningful again. Thank you!