| |

VerySource

 Forgot password?
 Register
Search
View: 841|Reply: 7

A beginner's question, please help !!

[Copy link]

4

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-2 20:50:01
| Show all posts |Read mode
When you search for something in Baidu Search, as soon as you click in the search box to enter the content you want to search for, the "Baidu Search" button on the back will have a dotted box appear, indicating that it is selected. What about making this effect in MFC?
Happy new year to everyone !!!
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-1-2 21:57:01
| Show all posts
Send message to that button WM_SETFOCUS
Reply

Use magic Report

4

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-2 22:30:01
| Show all posts
If you send a message to that button, the text box used as input will lose focus and can't continue the input operation?
Reply

Use magic Report

4

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-2 23:42:01
| Show all posts
Please help me a lot, VC is really hard to learn !!!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-3 23:45:01
| Show all posts
If edit gets the focus, set the border color of the button
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-4 00:15:01
| Show all posts
Are you talking about createsolidcaret?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-4 05:45:01
| Show all posts
[Quote=Quote the reply from the original posterstonelife:]
When you search for something in Baidu search, as long as you click the search box and enter the content you want to search in, a dotted box will appear behind the "Baidu Search" button, indicating that you have selected it. How can the heroes How to make this effect in MFC?
Happy New Year everyone!!!
[/Quote]

Baidu's one is not a dotted line, but a specially made wire frame. This is different from the virtual focus of MFC. You can press the TAB key and you will find that there is another focus on it.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Australia

Post time: 2020-9-4 06:45:01
| Show all posts
Set Default Button... and setfocus
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list