开发者

Edit controls won't get focus! win32 c++

Edit Control's in my Win32 App just refuse to take focus!. As a result, I cannot enter text in them开发者_StackOverflow. The controls worked fine before, and now just refuse to work! Here's a link to the code: http://dl.dropbox.com/u/35856163/src.zip


Next time post code right here, and at least try to compile it! I get 18 errors just trying to compile your file. Your code is also very hard to read, so I can't really say what happens where. You are mixing chars with wchars_t thus you can have memory corruption. char Buffer[Length() + 1]; shouldn't even compile! What compiler are you using? For dynamic allocation you MUST use pointers and new keyword, you can't use array subscript for dynamic size.

Anyway I maybe know where the problem lies - you're missing TranslateMessage before DispatchMessage. That bugs whole message thing and you of course can't get correct messages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜