| 发表于:2007-01-24 10:17:174楼 得分:0 |
there is only one static control which be uesed by scrolled the screen be layout in dialog. and so there are two classes be created in code source like as follow: class cscrollmemdc : public cdc { cscrollmemdc(cdc* pdc) : cdc() { ...} ~cscrollmemdc() { ...} } class cscrollhotstatic : public cstatic { void addtext (...) // other about style setting functions setvisitedcolor(); setunisitedcolor(); sethighlitedcolor(); setborder() setsunken(); // mainly event functions afx_msg void onclicked(); afx_msg void onmousemove(uint nflags, cpoint point); afx_msg void onpaint(); afx_msg void ontimer(uint nidevent); } finaly, there are no more other files be created but for scrollhotstatictest.cpp/scrollhotstatictestdlg.cpp, so do you think which part of the files be modified? tks in advanced | | |
|