摘要:
这篇文章本来是我从comp.lang.c++上面看到的东西,当时看完之后也没有想把它翻译过来,但是最近我要在我们学校上的一个校刊写一点东西,就想想把它翻译了算了,初次动笔翻译别人的文章,出错之处,敬请包涵。
matthewlanguages need reasons to be (commercially) successful.there are lots of languages and ......
摘要: 调用约定(calling convention)是指在java/j2me/code/ target=_blank>程序设计语言中为了实现函数调用而建立的一种协议。这种协议规定了该语言的函数中的参数传送方式、参数是否可变和由谁来处理堆栈等问题。不同的语言定义了不同的调用约定。 在c++中,为了允许操作符重载和函数重载,c++编译器往往按照某种规则改写每一个入口点的符号名,以便允许同一个名字(具有不......
窗口类的诞生(注册自己的窗口类)2 我们现在再来看看afxdeferregisterclass是什么样子的: ((afxregisteredclasses & fclass) ? true:afxenddeferregisterclass(fclass) 【程序编程相关:
指针的概念】 #define afxdeferregisterclass(fclass) \ 【推荐阅读:
VC++学习:用SDK实现分隔条】 #define afxregisteredclasses afxgetmodulestate()->m_fregisteredclasses 【扩展信息:
如何把VC++代码转换成VB代码?】 bool afxapi afxenddeferregisterclass(short fclass) { wndclass wndcls; wndcls.lpfnwndproc = defwindowproc; if(fclass & afx_wnd_reg) { wndcls.lpszclassname=_afxwnd; afxregisterclass(&wndcls); }else if(fclass & afx_wndolecontrol_reg) { wndcls.lpszclassname=_afxwndolecontrol; afxregisterclass(&wndcls); }else if(fclass & afx_wndcontrolbar_reg)
{ wndcls.lpszclassname=_afxwndcontrolbar; afxregisterclass(&wndcls); }else if(fclass & afx_wndmdiframe_reg) { registerwithicon(&...
下一页 摘要:
续上节.下面是类的实现.为了消除做图时的屏幕的闪烁,所以采用了位图的方式.在做图时充分考虑到了数值分析时的特点,作了三点处理:
(一)将网格线进行了自动调整,确保数据显示位于区域之内(二)如果出现零值,则确保0值网格线的出现(三)自动调整数值的显示方式,确保了横轴显示效果因此,非常适合于数值分析的图形显示,当然,由于采用了位图帖图的方式进行做图,你完全可以用它来进行实时绘图.lyhlinech......