Home > Software engineering >  DuiLib how CButtonUI clicked cannot get focus
DuiLib how CButtonUI clicked cannot get focus

Time:09-16

By clicking on the button to edit box control input, how to make the button control even click cannot get focus?

CodePudding user response:

Make the window WS_EX_NOACTIVATE extension style, would like im not preempted focus


CodePudding user response:

reference 1st floor zgl7903 response:
make the window WS_EX_NOACTIVATE extension style, will be like im not preempted focus

I just don't know where to set, to do this, for help

CodePudding user response:

reference 1st floor zgl7903 response:
make the window WS_EX_NOACTIVATE extension style, will be like im not preempted focus

Where is the great god, can detailed say this style set NOACTT

CodePudding user response:

SetWindowStyleEx or specify createWindow???

CodePudding user response:

a red reference 4 floor response:
setWindowStyleEx or specify createWindow???????

SetWindowStyleEx if don't have the API, try the setWindowLong

CodePudding user response:

references a tong 5 floor response:
Quote: a red reference 4 floor response:

SetWindowStyleEx or specify createWindow???

SetWindowStyleEx if don't have the API, try the setWindowLong

I don't know where is the use of the latter,

CodePudding user response:

refer to 6th floor yaletracy response:
Quote: a red reference 5 floor response:
Quote: a red reference 4 floor response:

SetWindowStyleEx or specify createWindow???

SetWindowStyleEx if don't have the API, try the setWindowLong

I don't know where is the use of the latter,

Find the control object, in the place where you can use a try, it is the most stupid the most simple way

CodePudding user response:

references a tong 7 floor response:
Quote: refer to the sixth floor yaletracy response:

Quote: a red reference 5 floor response:
Quote: a red reference 4 floor response:

SetWindowStyleEx or specify createWindow???

SetWindowStyleEx if don't have the API, try the setWindowLong

I don't know where is the use of the latter,

Find the control object, in the place where you can use all have a try, isn't that what the most stupid the simplest method?

Not the first parameter to this function in the source code can be set

CodePudding user response:

refer to the eighth floor yaletracy response:
Quote: a red reference 7 floor response:
Quote: refer to the sixth floor yaletracy response:

Quote: a red reference 5 floor response:
Quote: a red reference 4 floor response:

SetWindowStyleEx or specify createWindow???

SetWindowStyleEx if don't have the API, try the setWindowLong

I don't know where is the use of the latter,

Find the control object, in the place where you can use all have a try, isn't that what the most stupid the simplest method?

Not the first parameter to this function in the source code can be set

Then you see if direct use object invocation,
The control object - & gt; Two parameters after setwindowlong ()

CodePudding user response:

Do you want to edit box to capture to focus or the button doesn't get focus? Have SetFocus function

CodePudding user response:

Can after receiving the click event, set to edit box, then edit box set to focus,
  • Related