Hi! I've been playing around with custom command routing a bit, and I've noticed that if you route a command message to a custom object, object.OnCmdMsg(...)
, and the function returns TRUE(saying it has handled the message and called the message handler), but I return FALSE instead (saying the message hasn't been handled), the command handler for the custom object is never called (even though it already should've been called(?)). I hope someone can give me an explanation on why the handler isn't being called, and that the description above isn't to messy :)
grotesque
Posts
-
OnCmdMsg -
Edit control in DialogBarHi! I'm having problems with an edit control not responding to ctrl+c, ctrl+v and ctrl+x keystroke combinations when it's residing inside a DialogBar. The edit control doesn't receive a WM_CHAR message for any of the three keystroke combinations as it does in a regular dialog box, and I assume that's the problem. Anyone know why? :confused:
-
GraphicsPath::Outline problem (GDI+)I'm having a problem with the Outline method not working after I've applied a certain transformation to the GraphicsPath object (see code below). The problem occurs after the GraphicsPath object is scaled with either the X factor or/and the Y factor set to a negative value (causing flip/mirror). Code:
GraphicsPath path1; GraphicsPath path2; path1.AddString(L"GDI+", -1, &family, FontStyleRegular, 144, rect, &format); path2.AddString(L"GDI+", -1, &family, FontStyleRegular, 144, rect, &format); REAL offsetX = rect.GetLeft() + rect.Width / 2.0f; REAL offsetY = rect.GetTop() + rect.Height / 2.0f; Matrix matrix; matrix.Translate(-offsetX, -offsetY, MatrixOrderAppend); matrix.Scale(1.0f, -1.0f, MatrixOrderAppend); // negative Y factor causing // the path to "flip" matrix.Translate(offsetX, offsetY + 110.0f, MatrixOrderAppend); path2.Transform(&matrix); Pen pen(Color(255, 255, 0, 0)); path1.AddPath(&path2,TRUE); path1.Outline(); // fails due to the scaling transformation above // the shapes overlap instead om "melting together" pGraphics->DrawPath(&pen, &path1);
Any light on this problem would be much appreciated.:) (Using VC 6.0 and the C++ version of GDI+)
-
The listbox part of a comboboxHi! The listbox attached to a CComboBox is always displayed on top of and nerver clipped by the parent window. Is this possible to accomplish with other controls, like an ordinary CListBox (like IntellSense), and if so, how do you do it? I've tried setting the style WS_EX_TOPMOST, but it doesn't seem to stick on a CListBox control... Thanks There are no facts, only interpretations