[Bug 18949] Few GUI bugs - demonstrated with test application (attachment)
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Jun 14 19:11:40 CDT 2009
http://bugs.winehq.org/show_bug.cgi?id=18949
--- Comment #2 from Nikolay Sivov <bunglehead at gmail.com> 2009-06-14 19:11:40 ---
(In reply to comment #0)
> Created an attachment (id=21797)
--> (http://bugs.winehq.org/attachment.cgi?id=21797) [details]
> This application demonstrates mentioned bugs.
>
Hi, attach source too please.
First of all open one bug for one problem so we could process them.
> Please test this application on Windows first to see how it should work
> properly.
>
> 1) ListView
> a) it's possible to resize column size even the HDN_ITEMCHANGING,
> HDN_BEGINTRACK, HDN_ITEMCHANGED and HDN_ENDTRACK
> (WM_NOTIFY) messages are caught in WindowProc and forced to return TRUE.
> b) why it's possible to move (drag) column headers while the order can't be
> changed?
This belongs to comctl32.
It doesn't matter currently cause reordering is blocked in HDN_ENDDRAG.
Bug http://bugs.winehq.org/show_bug.cgi?id=3231 is about it and I'm currently
working on this issue.
> c) font changed in WM_NOTIFY->NM_CUSTOMDRAW->CDDS_ITEMPREPAINT works only
> for the first column, and even there the
> font is bad - it's only ITALIC, while it should be BOLD+ITALIC+UNDERLINE.
>
Can't comment just now. I'm not very familiar with custom draw.
> 2) CheckBox
> a) the font is not BOLD (it's the same font as used in LV) - a problem in
> CreateFontIndirect()?
>
Try to output a string to HDC without any control to be sure.
> 3) Menu - MF_OWNERDRAW
> a) 2 problems: the default item in owner drawn menu should be indicated
> with ODS_DEFAULT in the itemState member
> of DRAWITEMSTRUCT. Also, when it comes to owner-draw a defaulted item, the
> BOLD font should be already selected in
> the DC (hDC in DRAWITEMSTRUCT) by OS.
> b) SetMenuInfo() with MIM_BACKGROUND for setting a menu background is not
> implemented.
It's about user32 (or winex11 maybe).
> ### c) bug in MoveToEx()? I set MoveToEx(hDC, 1, top+10, NULL), but the
> result is like it would
> be MoveToEx(hDC, 0, top+10, NULL). All drawing results are displaced by 1px
MoveToEx is control independent. Open separate bug for it.
> to the left. Demonstrated by
> the blue line - simply compare to Windows.
>
> 4) WM_NCLBUTTONDOWN - allows to move the window by clicking in its client area
> a) very buggy, makes difficult to use CheckBox, ComboBox, headers in LV and
It deserves separate report too of course.
> possibly many more.
So please split it in such way: one problem -> one report.
After that post source code of test application (in this report maybe), I'll
take a look.
When you'll be ready with other reports, post here request to close this one.
Bye.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list