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
M

mhowes

@mhowes
About
Posts
6
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Listview and combobox questions? Margin in a combobox?
    M mhowes

    Is there a way to highlight the entire first column of a listview and not just highlight the contents of the cell?? LVS_EX_FULLROWSELECT highlights the entire row, which I don't want. But not using that means that only the contents of the first column are highlighted. Is there a way to adjust the margin in either; a subitem of a listview or a combobox like you can set the margin in CEdit? What i'd really like to be able to do...is move, ever so slightly, the edit portion of the combobox. I paint a combobox in a subitem of a listview. When the row gets focus, I grab the text from the subitem and put it in the combobox. The text shifts to the right a couple pixels. Plus the combobox border takes up a lot of space and i'd like to shift the text shown up 2 pixels. Any ideas? Anyone have an example of column resizing when the user drags the gridline. I don't have a listview header but still want the user to be able to resize the column width. thanks mike

    C / C++ / MFC tutorial question

  • Combobox member variable messages? I can get ON_CBN_SELCHANGE but not ON_CBN_KILLFOCUS?
    M mhowes

    I have two different situations where I have comboboxes that are part of a view. I can't seem to get all the combobox messages. A. I have a member variable that is part of a listview class. I make a handler for ON_CBN_SELCHANGE and I get that just fine, but I make a handler for ON_CBN_KILLFOCUS and I don't get that message??? I can get a ON_EN_KILLFOCUS for a CEdit member of the same view. Is there something special about ON_CBN_KILLFOCUS? B. I have, also in this view, a combobox, added to a toolbar. Both are members of the view. I do all the positioning myself. The toolbar's parent is the listview (this) and the comboboxes parent is the toolbar (m_tbrColumns). How can I get the messages for the combobox in the view?? I don't get any messages for this combobox in the view. thanks mike

    C / C++ / MFC question

  • Getting a combobox in a listview subitem??
    M mhowes

    I can't seem to draw a combobox in a listviews subitem. The combobox sizes funny. The width and position end up correct but it ends up way to high. I get the rectangle of the subitem just fine GetListCtrl().GetSubItemRect(pNMLV->iItem,1,LVIR_LABEL,itemRect); then I create the combobox with the rectangle info... CPropListCombo *pPropCombo = new CPropListCombo; pPropCombo->Create( WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | WS_CLIPCHILDREN,itemRect, this, 200 ); pPropCombo->ShowWindow(SW_SHOW); correct position, and width but it's height is way to big....maybe double the size of what's in the CRect. I tried subtracting a large amount from the itemRect.bottom but it made no difference. I do the SAME thing with a CBotton and a CEdit and it works fine....there isn't some minimum size for a combobox is there?? This is just CComboBox thanks mike

    C / C++ / MFC question

  • Drawing on a listview, combobox to big, and how do I create a flat CButton?
    M mhowes

    I'm trying to draw control programmatically in the 1st sub item of a listview row when the user sets the focus to that item. I have a handful of questions. Currently I'm doing this in the OnItemChanged and seeing if the items uNewState is SELECTED. Is this the best place to do this? Seems to work. Next, I use GetSubItemRect in combination with pNMLV-iItem to get the rect of the subitem I want to put the control over. This seem to work ok...except..with a combobox. GetListCtrl().GetSubItemRect(pNMLV->iItem,1,LVIR_BOUNDS,itemRect); CComboBox *pCombo = new CComboBox; pCombo->Create(WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | WS_CLIPCHILDREN, itemRect, this,190); The combobox shows up to big. It must have a minmum size or something? when I do the same thing with CEdit and CButton they work perfect. Also isn't the size difference in a combobox's CRect top and bottom the amount the combbox will drop down? Also, is there a way to create the combobox without a boarder so it will show up over the subitem better? Is there a style to make CButton flat? thanks mike

    C / C++ / MFC question graphics

  • Property list like visual studio??
    M mhowes

    I'd need to create a Property list, like that in Visual Studio for C++ and VB... You all know the Properties window that is basically a two column grid but that lets you set properties on controls and the like. Has anyone written a class (or is there one?) for and MFC app that will show up in a dockable window? I don't need a property sheet...which is all I can seem to find... I actually need something EXACTLY like the one in Visual Studio ideas? thanks mike

    C / C++ / MFC c++ csharp css visual-studio question

  • C++ SOAP example using .Net?
    M mhowes

    I've played around with the Soap Toolkit a bit and i'd like to take a look at the .Net soap stuff but I can't seem to find any C++ SOAP examples for .Net. What I need to do is build a C++/MFC windows app that can talk SOAP. Not only does it need to understand soap but it needs to be able to handles complex types from a SOAP service writen in Java. The Java side serializes a java class and I need to be able to deserialize it. any pointers or examples? I can find nothing on the ms site. thanks mike

    .NET (Core and Framework) c++ csharp java wcf xml
  • Login

  • Don't have an account? Register

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