The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: xandaz on January 05, 2011, 06:22:29 PM

Title: Tooltips get behind richedit control and can't see much!!!
Post by: xandaz on January 05, 2011, 06:22:29 PM
   Why do the tooltips get behind the richedit control? i used WS_CLIPx in the Main Window and also in the toolbar but doesn't work. If i deffer the manifest, the first time a tooltip is shown i can see it, but, the next ones i can't. Can someone tell me why? I'd try to search the forum but there's a lot of post but no titles relating to this specific matter. I'd rather not search them all. Thanks and bye
Title: Re: Tooltips get behind richedit control and can't see much!!!
Post by: dedndave on January 05, 2011, 08:05:13 PM
don't feel bad
my status bar is either above or behind my scroll bars   :lol
working on it...
Title: Re: Tooltips get behind richedit control and can't see much!!!
Post by: hutch-- on January 05, 2011, 09:55:14 PM
Dave,

If this is happening you are not sizing the client window correctly. Use a structure result API like GetWindowRect() or GetClientRect() depending on the context and calculate the height of the status bar, then subtract that from the client window size. MoveWindow() will place the client so it lines up with both a toolbar and a status bar.
Title: Re: Tooltips get behind richedit control and can't see much!!!
Post by: xandaz on January 07, 2011, 10:05:53 PM
    Problem more or less solved. All it took was WS_CLIPSIBLINGS style in Richedit control. However the tips show at bottom right corner of the window and not near the toolbar control. Thanks and  bye
Title: Re: Tooltips get behind richedit control and can't see much!!!
Post by: dedndave on January 08, 2011, 01:44:11 AM
sorry Xandaz
didn't mean to hijack your thread   :P
Title: Re: Tooltips get behind richedit control and can't see much!!!
Post by: oex on January 08, 2011, 02:19:25 AM
Quote from: dedndave on January 08, 2011, 01:44:11 AM
sorry Xandaz
didn't mean to hijack your thread   :P

lies :lol Posts: 7253 and counting
Title: Re: Tooltips get behind richedit control and can't see much!!!
Post by: xandaz on January 08, 2011, 01:39:29 PM
    (Laughs). Don't worry. No offense taken. Thanks