Greatest!
And im currently planning a few things.
I also wanted to see and have a go at making the windowed mode centered, with the following that I've borrowed from the gdi framework. i have a feeling though that im centering the the dialog text box instead.
int center_x=0;
int center_y=0;
int sys_w=0;
int sys_h=0;
//added:
if (!fullscreen)
{
sys_w = GetSystemMetrics(SM_CXSCREEN);
sys_h = GetSystemMetrics(SM_CYSCREEN);
center_x=(sys_w - width)/2;
center_y=(sys_h - height)/2;
}
else
{
center_x =0;
center_y =0;
}
hwnd = CreateWindowEx(
0,
PTCD3DClass, // class
title,
style,
center_x,center_y, // init. x,y pos
width,height,
NULL, // parent window
NULL, // menu handle
instance, // program handle
NULL // create parms
);