简体   繁体   中英

Window not getting focus when clicking on a checkbox control inside it

I have a problem in getting focus to a window in my Objective C Carbon application. When I click outside the window, then the window is out of focus. Then, when I click on a checkbox inside the window, the checkbox get selected, but the main window remains out of focus. I have tried using ActivateWindow() and other functions but none of them are working. What should I use to bring my window to the front?

使用SetFrontProcess(processSerialNumber)使它工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM