Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

grotesque

@grotesque
About
Posts
4
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • OnCmdMsg
    G grotesque

    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 :)

    C / C++ / MFC question

  • Edit control in DialogBar
    G grotesque

    Hi! 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:

    C / C++ / MFC help question

  • GraphicsPath::Outline problem (GDI+)
    G grotesque

    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+)

    C / C++ / MFC c++ winforms graphics help announcement

  • The listbox part of a combobox
    G grotesque

    Hi! 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

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups