| |

VerySource

 Forgot password?
 Register
Search
View: 26|Reply: 9

Regarding the process of full screen display, move the mouse to the top, the menu appears, remove the mouse, the menu di

[Copy link]

2

Threads

8

Posts

7

Credits

Newbie

Rank: 1

Credits
7

 China

Post time: 2020-1-24 07:20:01
| Show all posts |Read mode
I now have a full-screen display. When I want to move the mouse to the top area of ​​the screen when the screen is full, the menu is displayed. When I move the mouse away, the menu disappears again. How do I implement this operation?
Reply

Use magic Report

0

Threads

6

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 China

Post time: 2020-2-9 17:00:01
| Show all posts
If you use C ++ specifically, you don't know, but if you use VC, it should not be too difficult.

This "menu" is made into a special control. For example, after the mouse is moved over him, his coordinate Y value is added to his height (coordinate X is small, but cannot be 0 so that the mouse can be moved to it). If you remove it, you will reduce his height, so that it will become a "menu" when you move up and disappear.
Of course, this method is stupid. Don't laugh at me
Reply

Use magic Report

0

Threads

68

Posts

25

Credits

Newbie

Rank: 1

Credits
25

 China

Post time: 2020-2-9 17:30:01
| Show all posts
You can use a hidden rectangular area, such as a form or something,
Then catch WM_MOUSEHOVER message ...
Reply

Use magic Report

2

Threads

8

Posts

7

Credits

Newbie

Rank: 1

Credits
7

 China

 Author| Post time: 2020-2-9 18:15:02
| Show all posts
No, the current menu is the menu of the frame window, not created by yourself
Reply

Use magic Report

2

Threads

8

Posts

7

Credits

Newbie

Rank: 1

Credits
7

 China

 Author| Post time: 2020-2-9 19:15:01
| Show all posts
I am now in full screen display mode and the menu has disappeared. The problem now is to display it, but not return to normal display mode. The state is still in full screen display mode, but the mouse is moved to the top part of the screen. Area, the menu for that main frame appears on top
Reply

Use magic Report

2

Threads

8

Posts

7

Credits

Newbie

Rank: 1

Credits
7

 China

 Author| Post time: 2020-4-1 22:30:01
| Show all posts
In fact, my requirement is the same as the full-screen display of word. When the mouse is moved to the top of the full-screen display interface, the menu appears, and the menu disappears.
Reply

Use magic Report

0

Threads

13

Posts

12

Credits

Newbie

Rank: 1

Credits
12

 China

Post time: 2020-4-5 17:45:01
| Show all posts
Tracking the mouse position (OnMouseMove), if the Y coordinate is 0, the state T is set to 1, otherwise it is set to 0. Handle the mouse hovering message, if the state T is 1, and the menu does not exist, then display the menu; if the state T is 0, and the state exists, delete the menu.
Reply

Use magic Report

2

Threads

8

Posts

7

Credits

Newbie

Rank: 1

Credits
7

 China

 Author| Post time: 2020-4-8 21:15:01
| Show all posts
How to display? ? ? It is how to determine the position of the menu display. In the process of processing the full screen display, I do not directly hide the menu, but expand the client area to the entire screen range.
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-4-26 13:45:01
| Show all posts
Create another menu
The original menu can no longer be used
Reply

Use magic Report

0

Threads

13

Posts

12

Credits

Newbie

Rank: 1

Credits
12

 China

Post time: 2020-6-1 12:00:01
| Show all posts
When I was doing full screen, I used the source code in "MFC Classic Q & A". It is a menu with full screen. So at that time I had to hide the menu. The landlord can refer to this source code.
Reply

Use magic Report

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

Points Rules

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

Quick Reply To Top Return to the list