Technical window: Technical technical foundation capplication (. h) (dimethyl)

Source: Internet
Author: User

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 /////// //////////////////////////////////////// //////////////////////////////////////

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.