Skip to content

优海

人,技术,生活。

  • 常用
  • 生活
  • 历史
  • 技术
  • 编程
  • 软件

控件GetWindowRect再MoveWindow位置不对了

December 21, 2018 by euhat

正确写法是中间要加个ScreenToClient:

1
2
3
4
	CRect rect;
	listRecord_.GetWindowRect(&rect);
	ScreenToClient(&rect);
	listRecord_.MoveWindow(&rect);

CRect rect; listRecord_.GetWindowRect(&rect); ScreenToClient(&rect); listRecord_.MoveWindow(&rect);

Categories 编程 Tags GetWindowRect, MoveWindow, 位置不对
Post navigation
printf Stack overflow
DeleteFile 5 unlink EACCES
December 2018
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Nov   Jan »

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Email:
euhat@hotmail.com
wolinux@163.com

鄂ICP备14020742号-1

Tags

Android bash c Chrome cmake debug dpdk epoll Euhat fedora ffmpeg gdb include ipsec jni kernel Linux mat MFC mp4 NDK ofp opencv openssl printf python qt Rtsp source StrongSwan tcp ubuntu UE4 vmware win32 Windows 命令行 失败 年表 控件 日语 源码 皇帝 禁止 编译
© 2025 优海 • Built with GeneratePress