jxncxu 发表于 2006-8-31 22:26:00

为何我的MFC对话框不能居中?

我用objectarx2002+cad2002+vc++6.0编制了一MFC对话框,在对话框属性参数中,选择"More Styles"菜单,并设置了"Center"选项。编译连接后运行,可对话框并未象我要求的那样居中。郁闷!不知是何原因?

jxncxu 发表于 2006-9-3 16:21:00

这个论坛的大狭很懒。可能他们认为这个问题不值一答,也可能是问题没说清楚。但须知,大狭也是由小狭甚至于菜鸟而来!

who_is 发表于 2006-9-4 13:25:00

还有别的选项。

gisren 发表于 2006-9-12 11:37:00

Center Window( ) //Relative to it's parent
// Relative
to Screen
Example(2):
Center Window(CWnd:: GetDesktopWindow( ))
//Relative to
Application's MainWindow
AfxGetMainWnd( ) ->
Center Window( )
页: [1]
查看完整版本: 为何我的MFC对话框不能居中?