1 2 3 4 5 6 7 8 9 10
|
#ifndef ARAYUZ_H
#define ARAYUZ_H
#include <windows.h>
#define FONKSIYON LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM)
#define DEGISKEN char szClassName[ ] = "CodeBlocksWindowsApp"
#define MOTOR int WINAPI WinMain (HINSTANCE hThisInstance,HINSTANCE hPrevInstance,LPSTR lpszArgument,int nCmdShow){HWND hwnd;MSG messages;WNDCLASSEX wincl;wincl.hInstance = hThisInstance;wincl.lpszClassName = szClassName;wincl.lpfnWndProc = WindowProcedure;wincl.style = CS_DBLCLKS;wincl.cbSize = sizeof (WNDCLASSEX);wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);wincl.hCursor = LoadCursor (NULL, IDC_ARROW);wincl.lpszMenuName = NULL;wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;if (!RegisterClassEx (&wincl))return 0;hwnd = CreateWindowEx (0,szClassName,"Code::Blocks Template Windows App",WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,CW_USEDEFAULT,544,375,HWND_DESKTOP,NULL,hThisInstance,NULL);ShowWindow (hwnd, nCmdShow);while (GetMessage (&messages, NULL, 0, 0)){TranslateMessage(&messages);DispatchMessage(&messages);}return messages.wParam;}
#define CAGIRMA LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam){switch (message) {case WM_DESTROY:PostQuitMessage (0);break;default:return DefWindowProc (hwnd, message, wParam, lParam);}return 0;}
#endif
|