News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

toolbar

Started by Slugsnack, July 20, 2009, 09:37:57 PM

Previous topic - Next topic

Slugsnack

oh well here is my current method anyway in case it becomes of any use to anyone :

for non-overlapping of toolbar + child windows :

invoke GetClientRect, hwndDlg, addr rectClientArea
invoke GetWindowRect, hToolbar, addr rectToolbar

mov eax, rectToolbar.bottom
sub eax, rectToolbar.top
add eax, 10
mov rectClientArea.top, eax
invoke CascadeWindows, hwndDlg, MDITILE_SKIPDISABLED, addr rectClientArea, NULL, NULL


and this is to change the toolbar length to suit the parent window's size :

invoke GetWindowRect, hToolbar, addr rectToolbar

lea eax, lParam
movzx ecx, word ptr ds:[eax]
movzx edx, word ptr ds:[eax+2]

mov eax, rectToolbar.bottom
sub eax, rectToolbar.top

invoke SetWindowPos, hToolbar, HWND_TOP, 0, 0, ecx, eax, SWP_NOMOVE

xandaz

   Hi there. Why would a tooltip control show tooltips in Screen coordinates. I've tried lots of stuff but it always shows the tips in the bottom of main window. Look at it if you feel like it.