Classic Shell development was stopped in December 2017. For now the forum remains online as reference, but is read-only. Registration of new users is disabled.
It is currently Thu Sep 11, 2025 4:28 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Source code question
PostPosted: Tue Apr 14, 2015 6:53 am 
Offline

Joined: Tue Apr 14, 2015 6:41 am
Posts: 5
Dear Mr. Beltchev,

First of all, I'd like to thank you for the brilliant program. We found a lot of tricks, solutions and shortcuts in your source code. Without the classic shell code it would be much, much harder for us to develop our system utilities (one of them is very similar but is different the same time, as we need to show custom URLs, some integration information from another application and so on). Very impressive system knowledge on your side!

But there is one trick I still have no ideas about:

Code:
_Tooltip=CreateWindowEx(WS_EX_TOPMOST|WS_EX_TOOLWINDOW|WS_EX_TRANSPARENT|(m_bRTL?WS_EX_LAYOUTRTL:0),TOOLTIPS_CLASS,NULL,WS_POPUP|TTS_NOPREFIX|TTS_ALWAYSTIP,0,0,0,0,NULL,NULL,g_Instance,NULL);


Why do you use the zero-sized tooltip? It somehow fixes handling messages in the rebar, as far as I see, so when you move the taskbar to the left from the bottom (for instance), the rebar is repositioned properly (and if you comment that out, it stops doing so). Thank you in advance!

Regards,


Top
 Profile  
Reply with quote  
 Post subject: Re: Source code question
PostPosted: Tue Apr 14, 2015 7:43 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
That's how I've always done it. The size of the tooltip is determined by the text it is going to display, which is not known at creation time. Zero is as good as any. The MSDN samples use CW_USEDEFAULT, which will probably also work for you.


Top
 Profile  
Reply with quote  
 Post subject: Re: Source code question
PostPosted: Tue Apr 14, 2015 8:34 am 
Offline

Joined: Tue Apr 14, 2015 6:41 am
Posts: 5
Yep, it's understood ))

What I mean is the following: until we create the tooltip (uncommenting the quoted line), if we move the main taskbar on the second monitor under Windows 8.0, the rebar subclass procedure isn't called, so our custom startbutton will be drawn over the rebar window. Actually, we tried to fix the problem being inspired by the Classic Shell and created the tooltip. It has helped, but what is the relation between creating the tooltip and handling messages in SubclassRebarProc? Is this relation intentional at all or it's just a coincidence?

Thank you very much for the answer!

Regards,


Top
 Profile  
Reply with quote  
 Post subject: Re: Source code question
PostPosted: Tue Apr 14, 2015 8:38 am 
Offline

Joined: Tue Apr 14, 2015 6:41 am
Posts: 5
Let me add the following.

What we tried is exactly commenting the line out in the Classic Shell source code, not ours. It is the Classic Menu, that starts or stops working properly when moving the taskbar as described above, *NOT* our program. This is why we've copied it for the same purpose. But personally I don't want to be a copycat, I want to understand gears inside ))

Regards,


Top
 Profile  
Reply with quote  
 Post subject: Re: Source code question
PostPosted: Tue Apr 14, 2015 9:16 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5333
Which tooltip is this? The one for the start button? Also which version of Windows do you have?


Top
 Profile  
Reply with quote  
 Post subject: Re: Source code question
PostPosted: Wed Apr 15, 2015 3:44 am 
Offline

Joined: Tue Apr 14, 2015 6:41 am
Posts: 5
Tooltip: CStartButton::m_Tooltip, ClassicStartButton.cpp, line #76, Classic Shell 3.6.8.
Windows: Windows 8.0.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 390 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.