home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 July
/
IMM0795.ISO
/
share
/
tools
/
freeman
/
disk1
/
dlgbox.h_
/
dlgbox
Wrap
Text File
|
1995-02-01
|
904b
|
61 lines
#define __DLGBOX_H
#ifndef __AWNDOBJ_H
#include "awndobj.h"
#endif
class dlgboxobj:public abswndobj
{
int isdel;
public:
dlgboxobj(int isdelx = 0)
{
dlg = 0;
isdel = isdelx;
}
~dlgboxobj()
{
if (isdel)
{
del();
}
}
void del()
{
if (dlg != 0)
{
DestroyWindow(dlg);
}
dlg = 0;
}
void setret(LRESULT r)
{
SetWindowLong(dlg, DWL_MSGRESULT, r);
}
void end(int r)
{
EndDialog(dlg, r);
}
HWND getdlg()
{
return dlg;
}
HWND getwnd()
{
return dlg;
}
HWND dlg;
virtual BOOL onmsg(UINT msg, WPARAM wp, LPARAM lp) = 0;
int go(HWND owner, int dlgid);
int go(HWND owner, char dlgname[]);
int create(HWND owner, int dlgid);
int create(HWND owner, char dlgname[]);
};