int win_set_anchor(CWnd * pw,int anchor); int win_get_anchor(CWnd * pw); int win_set_name(CWnd * pw,char * name); char * win_set_name(CWnd * pw); int winproc_anchor_host(CWnd * p,UINT message, WPARAM wParam, LPARAM lParam); win_addproc(pdlg,winproc_anchor_host,1); //win_set_anchor(pdlg->GetDlgItem(IDOK3),WIN_ANCHOR_BOTTOM |WIN_ANCHOR_TOP); win_set_anchor(pdlg->GetDlgItem(IDOK3),WIN_ANCHOR_RIGHT|WIN_ANCHOR_TOP);
win_set_anchor用法
最新推荐文章于 2026-06-24 11:57:32 发布
本文介绍了一组用于Windows编程的自定义函数,包括设置和获取控件锚点及名称的功能。通过这些函数可以实现控件在窗口大小变化时的位置调整,并为控件分配易于识别的名字。
290

被折叠的 条评论
为什么被折叠?



