mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
set TTN_ALWAYS for quicklaunch icons
svn path=/trunk/; revision=5907
This commit is contained in:
parent
eee0086bc9
commit
1eea5d2dac
4 changed files with 10 additions and 4 deletions
|
@ -9,7 +9,7 @@
|
|||
- implement Drag Drop from the tree view.
|
||||
- activate accelerator keys like <DEL> in shell view folders
|
||||
- program manager "progman" DDE server
|
||||
- command line parameters like "/e,/root,c:\" and "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}" (launch auf control panel)
|
||||
- command line parameters like "/e,/root,c:\" and "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}" (launch of control panel)
|
||||
- search functionality in start menu
|
||||
- Windows-key combos
|
||||
- Application Desktop Toolbars
|
||||
|
|
|
@ -53,6 +53,10 @@ QuickLaunchBar::QuickLaunchBar(HWND hwnd)
|
|||
{
|
||||
_next_id = IDC_FIRST_QUICK_ID;
|
||||
|
||||
HWND hwndToolTip = (HWND) SendMessage(hwnd, TB_GETTOOLTIPS, 0, 0);
|
||||
|
||||
SetWindowStyle(hwndToolTip, GetWindowStyle(hwndToolTip)|TTS_ALWAYSTIP);
|
||||
|
||||
// delay refresh to some tome later
|
||||
PostMessage(hwnd, PM_REFRESH, 0, 0);
|
||||
}
|
||||
|
@ -158,7 +162,7 @@ int QuickLaunchBar::Command(int id, int code)
|
|||
int QuickLaunchBar::Notify(int id, NMHDR* pnmh)
|
||||
{
|
||||
switch(pnmh->code) {
|
||||
case TTN_GETDISPINFO: { //TODO: TTN_GETDISPINFO is only received, if desktop bar window has the focus?!
|
||||
case TTN_GETDISPINFO: {
|
||||
NMTTDISPINFO* ttdi = (NMTTDISPINFO*) pnmh;
|
||||
|
||||
int id = ttdi->hdr.idFrom;
|
||||
|
|
|
@ -390,6 +390,8 @@ extern "C" {
|
|||
|
||||
|
||||
#define SetDlgCtrlID(hwnd, id) SetWindowLong(hwnd, GWL_ID, id)
|
||||
#define SetWindowStyle(hwnd, val) (DWORD)SetWindowLong(hwnd, GWL_STYLE, val)
|
||||
#define SetWindowExStyle(h, val) (DWORD)SetWindowLong(hwnd, GWL_EXSTYLE, val)
|
||||
|
||||
|
||||
// display
|
||||
|
|
|
@ -664,8 +664,8 @@ void PictureButton::DrawItem(LPDRAWITEMSTRUCT dis)
|
|||
|
||||
|
||||
ToolTip::ToolTip(HWND owner)
|
||||
: super(CreateWindowEx(WS_EX_NOPARENTNOTIFY, TOOLTIPS_CLASS, 0,
|
||||
TTS_ALWAYSTIP, CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
|
||||
: super(CreateWindowEx(WS_EX_TOPMOST|WS_EX_NOPARENTNOTIFY, TOOLTIPS_CLASS, 0,
|
||||
WS_POPUP|TTS_NOPREFIX|TTS_ALWAYSTIP, CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
|
||||
owner, 0, g_Globals._hInstance, 0))
|
||||
{
|
||||
activate();
|
||||
|
|
Loading…
Reference in a new issue