vc中怎样把一个控件放到其他控件上层,该怎么解决

vc中怎样把一个控件放到其他控件上层
vc中怎样把一个控件放到其他控件上层

------解决方案--------------------
1、如果是事先布局好的,可以将需要显示在上面的控件的Transparent属性设置上,一般两个都要设置上;
2、代码:
BOOL SetWindowPos( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags ); 

设置const CWnd* pWndInsertAfter让你点击得控件跑到最上面好了

------解决方案--------------------
easy ,程序中的.RC文件,右键查看代码,然后更改代码,把你要放在最上面的控件代码,放在其它控件上面即可
------解决方案--------------------
BOOL SetWindowPos(
HWND hWnd, // handle to window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning options
);
最后一个参数设置为HWND_TOPMOST