77 lines
1.6 KiB
C++
77 lines
1.6 KiB
C++
#ifndef _SLIDEWINDOW_HPP_
|
||
#define _SLIDEWINDOW_HPP_
|
||
#include <mdiwin/vector.hpp>
|
||
#include <mdiwin/main.hpp>
|
||
#include <mdiwin/bitmap.hpp>
|
||
#include <mdiwin/mdiwin.hpp>
|
||
#include <mdiwin/toolbar.hpp>
|
||
|
||
class SlideWindow : public MDIWindow
|
||
{
|
||
public:
|
||
SlideWindow(void);
|
||
SlideWindow(const SlideWindow &someSlideWindow);
|
||
void showWindow(HWND hClientWindow,Block<String> &pathFileNames,BWindow *statusBar,HMENU hFrameMenu);
|
||
virtual ~SlideWindow();
|
||
static void Register(HINSTANCE hInstance);
|
||
int operator==(const SlideWindow &someSlideWindow)const;
|
||
static char far *className(void);
|
||
WORD isDestroyed(void)const;
|
||
HWND handle(void)const;
|
||
private:
|
||
enum{idTimer=0x01};
|
||
enum{TimeOut=250};
|
||
void Paint(void);
|
||
long WndProc(UINT message,WPARAM wParam,LPARAM lParam);
|
||
|
||
void handleDestroyEvent(void);
|
||
void handleActivateEvent(WPARAM wParam,LPARAM lParam);
|
||
void handleTimerEvent(void);
|
||
void handleToolbarToggle(void);
|
||
void createMDIChildWindow(void);
|
||
void createToolBarWindow(void);
|
||
|
||
static char szClassName[];
|
||
static char szMenuName[];
|
||
static HINSTANCE smhInstance;
|
||
|
||
HWND mhClientWindow;
|
||
HWND mhFrameWindow;
|
||
WORD mIsDestroyed;
|
||
HMENU mhSystemMenu;
|
||
HMENU mhFrameMenu;
|
||
HMENU mhSlideMenu;
|
||
WORD mToolbarVisibility;
|
||
WORD mCurrentFrame;
|
||
WORD mIsRunning;
|
||
Vector<Bitmap> mBitmaps;
|
||
BWindow *mpStatusBar;
|
||
ToolBar *mlpToolBar;
|
||
};
|
||
|
||
inline
|
||
char far *SlideWindow::className(void)
|
||
{
|
||
return szClassName;
|
||
}
|
||
|
||
inline
|
||
int SlideWindow::operator==(const SlideWindow &someSlideWindow)const
|
||
{
|
||
return (GetHandle()==someSlideWindow.GetHandle());
|
||
}
|
||
|
||
inline
|
||
WORD SlideWindow::isDestroyed(void)const
|
||
{
|
||
return mIsDestroyed;
|
||
}
|
||
|
||
inline
|
||
HWND SlideWindow::handle(void)const
|
||
{
|
||
return GetHandle();
|
||
}
|
||
#endif
|
||
|
||
|