Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

70 lines
2.6 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: GenericWnd.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of GenericWnd.h
//----------------------------------------------------------------------------
#ifndef __WND__H__INCLUDED__
#define __WND__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
class CGenericWnd
{
public:
CGenericWnd();
virtual ~CGenericWnd();
public:
operator HWND() const { return m_hWnd; }
public:
virtual LONG GetWindowLong( int nIndex );
virtual BOOL ShowWindow( int nCmdShow );
virtual BOOL DestroyWindow();
virtual BOOL GetClientRect( LPRECT );
virtual HWND GetSafeHwnd() { return m_hWnd; }
virtual BOOL MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint );
virtual BOOL MoveWindow( LPRECT pRect, BOOL bRepaint );
virtual BOOL SetWindowText( LPCTSTR lpString );
virtual BOOL InvalidateRect( LPCRECT lpRect, BOOL bErase );
protected:
virtual BOOL Create( LPCTSTR, LPCTSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE );
virtual BOOL CreateEx( DWORD, LPCTSTR, LPCTSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE );
protected:
static BOOL RegisterClass( LPCTSTR lpszClassName, HINSTANCE hInstance, UINT style = CS_HREDRAW|CS_VREDRAW, HCURSOR hCursor = LoadCursor( NULL, IDC_ARROW ), HICON hIcon = LoadIcon( NULL, IDI_APPLICATION ), HBRUSH hbrBackground = NULL, LPCTSTR lpszMenuName = NULL, int cbClsExtra = 0, int cbWndExtra = 0 );
static BOOL RegisterClassEx( LPCTSTR lpszClassName, HINSTANCE hInstance, UINT style = CS_HREDRAW|CS_VREDRAW, HCURSOR hCursor = LoadCursor( NULL, IDC_ARROW ), HICON hIcon = LoadIcon( NULL, IDI_APPLICATION ), HBRUSH hbrBackground = NULL, LPCTSTR lpszMenuName = NULL, int cbClsExtra = 0, int cbWndExtra = 0, HICON hIconSm = NULL );
protected:
virtual LRESULT WindowProc( UINT, WPARAM, LPARAM );
protected:
virtual LRESULT OnKeyDown( WPARAM, LPARAM );
virtual LRESULT OnCommand( WPARAM, LPARAM );
virtual LRESULT OnClose( WPARAM, LPARAM );
virtual LRESULT OnPaint( WPARAM, LPARAM );
virtual LRESULT OnDestroy( WPARAM, LPARAM );
virtual LRESULT OnDisplayChange( WPARAM, LPARAM );
virtual LRESULT OnDevModeChange( WPARAM, LPARAM );
virtual LRESULT OnSize( WPARAM, LPARAM );
private:
static LRESULT CALLBACK WindowProc( HWND, UINT, WPARAM, LPARAM );
private:
HWND m_hWnd;
};
#endif