一个典型的例子解决常见的高级Windows程序设计问题[1]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 hightech 的 blog


//#######################################################################################
// copyright(c) vision technologies 2002 all rights reserved.
//
// project name:  fileinspector rt
// software version 1.0
//
// ----------------------------------------------------------
//
// file name:   fileinspector.h
// function:   define of classes
// created time:  28th dec, 2002
//  author:    hightech young
//
// ----------------------------------------------------------
//
//  revidion time:  
//  revision by:  
// revision contents: 
//
//#######################################################################################

#include "resource.h"
#include "stdafx.h"
#include "afxmt.h"

//---------------------------------------------------------------------------------------
//
// comments: define of applacation class 
//
//---------------------------------------------------------------------------------------

class cmyapp : public cwinapp
{
public:
    virtual bool initinstance ();
};

//---------------------------------------------------------------------------------------
//
// comments: define of mainwindow class
//
//---------------------------------------------------------------------------------------

class cmainwindow : public cwnd
{
 //
 // declare all objects of interface
 //
private:
 cstatic    m_fitip;
 cbutton    m_groupboxfi;
 cedit    m_objectpath;
 cbutton    m_browse;

 cbutton    m_groupboxfs;
 cstatic    m_fstip;
 cedit    m_objectsize;
 cbutton    m_gb;
 cbutton    m_mb;
 cbutton    m_kb;
 cbutton    m_byte;

 cbutton    m_ok;
 cbutton    m_cancel;
 cbutton    m_exit;

public:
    cmainwindow ();

 bool boolwndhadshow; // window display indicator

protected:
 cevent m_eventstopwatch;// cevent object for synchonize thread

 virtual void postncdestroy();

 //
 // message handler declare
 //
 afx_msg int oncreate(lpcreatestruct lpcs);
    afx_msg void onsyscommand(uint nid, lparam lparam);

    afx_msg lresult onmyiconnotify(wparam wparam, lparam lparam);
 afx_msg lresult onshowappiconic(wparam wparam, lparam lparam);
 afx_msg void onclose();

 afx_msg void onbrowsebutonclicked();
 afx_msg void onobjectpathchanged();
 afx_msg void onokbuttonclicked();
 afx_msg void oncancelbuttonclicked();
 afx_msg void onexitbuttonclicked();

 afx_msg long onfilechanged(wparam wparam, lparam lparam);
    declare_message_map ()
};

//##################################### end of file #######################################

 

//#######################################################################################
// copyright(c) vision technologies 2002 all rights reserved.
//
// project name:  fileinspector rt
// software version 1.0
//
// ----------------------------------------------------------
//
// file name:   fileinspector.cpp
// function:   implementation of the class
// created time:  28th dec, 2002
//  created by:   hightech young
//
// ----------------------------------------------------------
//
//  revidion time:  
//  revision by:  
// revision contents: 
//
//#######################################################################################

#include "fileinspector.h"

//---------------------------------------------------------------------------------------
//
// comments:  globe defination area
//

本文关键:线程,状态栏小图标,文件实时监视
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top