Hi void. Can you tell me what WinAPI and methods are used to create the X ''clear search'' button in the search editbox? Are you using subclassing? If it's simple, could you paste a code snippet?
Programming question: What is the X clear search editbox button?
Programming question: What is the X clear search editbox button?
Last edited by NotNull on Sat Feb 26, 2022 8:09 pm, edited 1 time in total.
Reason: Movd to Development forum
Reason: Movd to Development forum
Re: Programming question: What is the X clear search editbox button?
It's my own button class, created with RegisterClassEx.
The class name is EVERYTHING_CLOSE_BUTTON.
The close button window is created as a child of the edit window.
The hardest part is adjust the edit margin so the text doesn't disappear underneath the close button.
I subclass the parent edit window so the close button can be positioned when the edit window is resized.
The class name is EVERYTHING_CLOSE_BUTTON.
The close button window is created as a child of the edit window.
The hardest part is adjust the edit margin so the text doesn't disappear underneath the close button.
I subclass the parent edit window so the close button can be positioned when the edit window is resized.