swp_nozorder | swp_nomove | swp_noredraw);
}
//---------------------------------------------------------------------------------------
//
// function: int cmainwindow::oncreate(lpcreatestruct lpcs)
// purpose: create gui of programe
// comments:
//
//---------------------------------------------------------------------------------------
int cmainwindow::oncreate(lpcreatestruct lpcs)
{
if(cwnd::oncreate(lpcs) == -1)
return -1;
//
// object selected groupe box
//
m_groupboxfi.create (_t (" supervised target:"),
ws_child|bs_groupbox| ws_visible,
crect(10,10,360,115),
this,
idc_groupbox_fi);
m_fitip.create(_t("please select the file or folder which you want to ask the file/folder supervisor supervise."),
ws_child|ws_visible,
crect(25,35,350,75),
this,
ids_fi_tip);
m_objectpath.create(ws_child|ws_visible|ws_border|es_autohscroll,
crect(25,80,260,100),
this,
ide_obj_path);
m_browse.create(_t("browse.."),
ws_child|ws_visible|bs_pushbutton,
crect(265,80,350,100),
this,
idc_browse);
//
// file size limitation config box
//
m_groupboxfs.create (_t ("file size limitation:"),
ws_child |bs_groupbox| ws_visible,
crect(10,120,360,280),
this,
idc_groupbox_fs);
m_fstip.create( _t("the folder or file size must be less than:"),
ws_child|ws_visible,
crect(25,145,350,165),
this,
ids_fs_tip);
m_objectsize.create(ws_child|ws_visible|ws_border|es_autohscroll,
crect(30,170,100,190),
this,
ide_obj_size);
m_gb.create (_t("gb"),
ws_child|ws_group|ws_visible|bs_autoradiobutton,
crect(110,170,150,190),
this,
idc_gb);
m_mb.create (_t("mb"),
ws_child|ws_visible|bs_autoradiobutton,
crect(155,170,195,190),
this,
idc_mb);
m_kb.create (_t("kb"),
ws_child|ws_visible|bs_autoradiobutton,
crect(200,170,240,190),
this,
idc_gb);
m_byte.create (_t("byte"),
ws_child|ws_visible|bs_autoradiobutton,
crect(245,170,325,190),
this,
idc_byte);
m_kb.setcheck (bst_checked);
//
// buttons
//
m_ok.create(_t("start"),
ws_child|ws_group|bs_defpushbutton| ws_visible,
crect(50,290,150,315),
this,
idc_ok);
m_cancel.create(_t("cancel"),
ws_child|bs_pushbutton| ws_visible,
crect(155,290,255,315),
this,
idc_cancel);
m_cancel.enablewindow(false);
m_exit.create(_t("stop"),
ws_child|bs_pushbutton| ws_visible,
crect(260,290,360,315),
this,
idc_exit_fi);
return 0;
}
//---------------------------------------------------------------------------------------
//
// function: void cmainwindow::postncdestroy()
// purpose: postncdestroy will be used for delete the window
// comments:
//
//---------------------------------------------------------------------------------------
void cmainwindow::postncdestroy()
{
delete this;
}
//---------------------------------------------------------------------------------------
//