稳定盈利的期货交易方法-量化趋势交易

alantop -专业量化投资者

爱好:量化投资,逆向工程,渗透
随笔 - 595, 文章 - 0, 评论 - 921, 引用 - 0
数据加载中……

AfxRegisterWndClass的目的

AfxRegisterWndClass是为了用自己的光标。

BOOL CBounceWnd::Create(LPCTSTR szTitle, LONG style, const RECT& rect, CWnd* parent)
{
    // Register a custom WndClass and create a window.
    // This must be done because CBounceWnd has a custom cursor, and
    //  no icon.
    LPCTSTR lpszBounceClass =
        AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW,
            LoadCursor(NULL, IDC_UPARROW),
            (HBRUSH)(COLOR_WINDOW+1),
            NULL);

    return CWnd::Create(lpszBounceClass, szTitle, style, rect, parent,
        IDC_BOUNCE_WND);
}

posted on 2007-07-16 20:43 AlanTop 阅读(1647) 评论(2)  编辑 收藏 引用

评论

# re: AfxRegisterWndClass的目的  回复  更多评论   

谢谢你帮我解决了"AfxRegisterWndClass是为了用自己的光标。"这个问题
2007-08-07 12:20 | 紫金

# re: AfxRegisterWndClass的目的  回复  更多评论   

不客气。
2007-08-07 12:21 | AlanTop

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理