Simple Win32 OOP wrapper with basic windows, panels, controls and graphics.
- Include WinapiFramework:
#include "winapi_framework.h" namespace WAF = WinapiFramework; auto& Winwork = WAF::Framework::GetInstance(); - Create first window:
int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR args, INT ncmd) { WAF::Window *window = Winwork.CreateNewWindow( WAF::ConStruct<WAF::Window>( L"WAF Window", WAF::Rect(50, 50, 1200, 700))); - [Optionally] Set callback function (called every time after message queue is processed)
Winwork.SetCallbackFunction(YourCallBackFunction); - Start message loop:
return Winwork.ProcessMessages(); }
- Windows with different styles and confgurations
- Controls:
- Button
- CheckBox
- EditBox
- Label
- ProgressBar
- TrackBar
- GroupBox
- Panel
- ComboBox
- GraphicsBox - Direct2D1 based. Capable of rendering text, some shapes and bitmaps.
- keyboard and mouse input
- event and loop driven system
WinapiFramework uses small graphics library developed separately. Can be found here.
