Technical window: Technical technical foundation type capplication (. h), available
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// //////////////////////////////
/////// Capplication. h ///////
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// //////////////////////////////
# Include <windows. h>
Class capplication
{
Protected:
//
Int m_bfullscreen;
Int screenw;
Int screenh;
Int clientbkcolor;
Int change_size_able;
Int show_mouse_cursor;
Bool bactive;
Rect rectwin;
Hicon;
Hicon hcursor;
Hmenu;
Hwnd;
Public:
Capplication (void );
Capplication (INT bfullscr, int scrw, int scrh );
Void isfullscreen (bool bfscr) {m_bfullscreen = bfscr ;}
Void setscreenw (INT scrw) {screenw = scrw ;}
Void setscreenh (INT scrh) {screenh = scrh ;}
Void changesizeable (INT chable) {change_size_able = chable ;}
Void showmousecursor (INT m) {show_mouse_cursor = m ;}
Void setclientbkcolor (INT c) {clientbkcolor = C ;}
//
Void set_hicon (hinstance, Word icon)
{
Hicon = loadicon (hinstance, makeintresource (icon ));
}
//
Void set_hcursor (hinstance, word cursor)
{
Hcursor = loadcursor (hinstance, makeintresource (cursor ));
}
//
Void set_hmenu (hinstance, word menu)
{
Hmenu = loadmenu (hinstance, makeintresource (menu ));
}
//
Hwnd createwin (wndproc winproc,
Hinstance,
Tchar * windowname,
DWORD winstyle );
//
Lresult msgproc (hwnd, uint umsg, wparam, lparam );
//
Int rundefault (void );
//
Int get_m_bfullscreen (void) {return m_bfullscreen ;}
Int get_screenw (void) {return screenw ;}
Int get_screenh (void) {return screenh ;}
Int get_clientbkcolor (void) {return clientbkcolor ;}
Int get_change_size_able (void) {return change_size_able ;}
Int get_show_mouse_cursor (void) {return show_mouse_cursor ;}
Bool get_bactice (void) {return bactive ;}
Rect get_rectwin (void) {return rectwin ;}
Hicon get_hicon (void) {return hicon ;}
Hicon get_hcursor (void) {return hcursor ;}
Hmenu get_hmenu (void) {return hmenu ;}
Hwnd get_hwnd (void) {return hwnd ;}
};
//////////////////////////////////////// /// // EOF /////// //////////////////////////////////////// //////////////////////////////////////