set TTN_ALWAYS for quicklaunch icons

svn path=/trunk/; revision=5907
This commit is contained in:
Martin Fuchs 2003-08-28 19:59:14 +00:00
parent eee0086bc9
commit 1eea5d2dac
4 changed files with 10 additions and 4 deletions

View file

@ -9,7 +9,7 @@
- implement Drag Drop from the tree view. - implement Drag Drop from the tree view.
- activate accelerator keys like <DEL> in shell view folders - activate accelerator keys like <DEL> in shell view folders
- program manager "progman" DDE server - 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 - search functionality in start menu
- Windows-key combos - Windows-key combos
- Application Desktop Toolbars - Application Desktop Toolbars

View file

@ -53,6 +53,10 @@ QuickLaunchBar::QuickLaunchBar(HWND hwnd)
{ {
_next_id = IDC_FIRST_QUICK_ID; _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 // delay refresh to some tome later
PostMessage(hwnd, PM_REFRESH, 0, 0); PostMessage(hwnd, PM_REFRESH, 0, 0);
} }
@ -158,7 +162,7 @@ int QuickLaunchBar::Command(int id, int code)
int QuickLaunchBar::Notify(int id, NMHDR* pnmh) int QuickLaunchBar::Notify(int id, NMHDR* pnmh)
{ {
switch(pnmh->code) { 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; NMTTDISPINFO* ttdi = (NMTTDISPINFO*) pnmh;
int id = ttdi->hdr.idFrom; int id = ttdi->hdr.idFrom;

View file

@ -390,6 +390,8 @@ extern "C" {
#define SetDlgCtrlID(hwnd, id) SetWindowLong(hwnd, GWL_ID, id) #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 // display

View file

@ -664,8 +664,8 @@ void PictureButton::DrawItem(LPDRAWITEMSTRUCT dis)
ToolTip::ToolTip(HWND owner) ToolTip::ToolTip(HWND owner)
: super(CreateWindowEx(WS_EX_NOPARENTNOTIFY, TOOLTIPS_CLASS, 0, : super(CreateWindowEx(WS_EX_TOPMOST|WS_EX_NOPARENTNOTIFY, TOOLTIPS_CLASS, 0,
TTS_ALWAYSTIP, CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT, WS_POPUP|TTS_NOPREFIX|TTS_ALWAYSTIP, CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
owner, 0, g_Globals._hInstance, 0)) owner, 0, g_Globals._hInstance, 0))
{ {
activate(); activate();