楼主:
areyo (没有名字的怪物)
2016-07-15 18:52:13开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
None
问题(Question):
为什么用findwindow找combobox的hanlder都找不到,可是button却可以??
喂入的资料(Input):
这是我找寻的code, currChild却是0
IntPtr mWin = FindWindow("ThunderRT6FormDC", "POSDLLDemo");
IntPtr mFrame = FindWindowEx(mWin, IntPtr.Zero, "ThunderRT6Frame", "Port Config");
currChild = FindWindowEx(mFrame, prevChild, "ThunderRT6ComboBox", "COM1");
预期的正确结果(Expected Output):
取得combobox的handler
错误结果(Wrong Output):
NULL
程式码(Code):(请善用置底文网页, 记得排版)
补充说明(Supplement):
我用C++写的,只不过我要找的目标是用VB写的,这次没有迷路
作者: ctrlbreak 2016-07-16 13:49:00
你编unicode的版本吗, 是的话就字串格式错了.还有一个不知道有没有相关, 之前工作需求写工具遇到的32bits版程式只能找到32bit的程式, 有些要编译成x64才找的到, 也许MS自己的东西没有这个问题, 差异在哪我懒得找问题了 XD