| |

VerySource

 Forgot password?
 Register
Search
View: 2097|Reply: 15

About caret

[Copy link]

2

Threads

17

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

Post time: 2020-2-1 17:40:01
| Show all posts |Read mode
In conversation mine
         GetDlgItem (IDC_EDIT_NAME)-> SetFocus ();
GetDlgItem (IDC_EDIT_NAME)-> CreateSolidCaret (2,10);
ShowCaret ();

GetDlgItem (IDC_EDIT_NAME) <-this is my edit box pointer
Why isn't it displayed? It's that little tree line !!
Reply

Use magic Report

0

Threads

10

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-3-14 22:15:01
| Show all posts
GetDlgItem (IDC_EDIT_NAME)-> ShowWindow ();
Reply

Use magic Report

2

Threads

17

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

 Author| Post time: 2020-3-16 21:45:02
| Show all posts
Upstairs is invalid
When the window appears, the small tree line appears in the edit box I specified.
Reply

Use magic Report

2

Threads

17

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

 Author| Post time: 2020-3-20 19:45:01
| Show all posts
Isn't it so difficult ?????
Reply

Use magic Report

0

Threads

17

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-23 15:15:01
| Show all posts
EDIT doesn't need to create the caret at all
If created, set the caret position before SHOW
Reply

Use magic Report

2

Threads

17

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

 Author| Post time: 2020-3-24 20:45:01
| Show all posts
If you don't need to create
So how do I function in the initialization of my dialog!
When my window appears, a small vertical line flashing in the specified EDIT /
Reply

Use magic Report

2

Threads

17

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

 Author| Post time: 2020-3-27 16:15:02
| Show all posts
Can anyone explain in detail?
Reply

Use magic Report

0

Threads

17

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-28 20:00:01
| Show all posts
SetFocus is OK
Reply

Use magic Report

2

Threads

17

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

 Author| Post time: 2020-3-30 12:00:02
| Show all posts
I also think it's a focus issue
Actually I have set focus in OnInitDialog
         GetDlgItem (IDC_EDIT_NAME)-> SetFocus ();
return FALSE;
But still no flashing vertical lines
Reply

Use magic Report

0

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-4-2 01:00:01
| Show all posts
The setting in OnInitDialog is invalid. Set in OnPaint?
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