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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
G

GregH

@GregH
About
Posts
11
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Ravel. Don'tt Read This!
    G GregH

    Have you ever tried Cacique 500? My current favorite though it is nigh impossible to get here in the states. Anyone here from Venezuela...?

    The Lounge com tools question

  • CListCtrl in LVS_ICON mode with no text
    G GregH

    I am working on implementing a CListCtrl derived class that functions similar to a control bar. Each icon functions like a button, icon only with no text assigned, and the layout (# of rows/columns) is adjusted as the size of the control changes. All the icons are displayed packed together with a single pixel separating them vertically and horizontally. I have just about everything working, but have run into one problem I cannot find a solution for. When there are multiple rows displayed in the control, even though no text is displayed for any icon, space for the text is being calculated. Clicking on an icon in a row other than the top row results in the icon in the row above being selected - if the click happens in the space where the text of the upper item would appear, if there were any. To put it another way, the space where text would appear for icon in Row A overhangs the icons in Row B. Clicking in this 'overhang' space results in the icon in Row A being selected, while visually it appears that the click happened well within Row B. Any ideas on how to make the list control not calculate the space for the text label?

    C / C++ / MFC help tutorial question

  • RIS Computer Name Generation
    G GregH

    Years ago when I did my first W2K roll out using RIS on a W2K server I had set the 'client computer naming format' to use the LAST 4 digits of the clients MAC address, plus some static text, "STATIC-NNNN". Since then I've changed it a number of times for different reasons. Now I am trying to set it back to what it was but for the life of me cannot figure out how to do it. Everything I read explains how to use the FIRST N number of digits, "STATIC-%4MAC", but I can find no mention of how to use the LAST n number of digits. I have 30+ clients here, all named using the last digits of their MAC address. I know they were rolled out via RIS and they they were not pre-staged, so I know this worked at some point... Am I dreaming here or can someone explain how to do this?

    System Admin sysadmin tutorial question

  • Microsoft's response to Claria (gator) questions
    G GregH

    Windows AntiSpyware (Beta) continues to notify our users when Claria software is found on a computer, and it offers our users the option to remove the software if they desire. Sounds like it is still marked as spyware to me.

    The Lounge com security announcement

  • CListCtrl CustomDraw/OnCtlColor Quandary
    G GregH

    I have a CListCtrl derived control on a dialog using the report style. The dialog has a BMP as a background. Using SetBkColor and SetTextBkColor I have made the CListCtrl transparent, allowing the BMP background to show through. This works correctly, with one exception, the first column. This first column is not drawn transparently, but is instead drawn with a black background. All other columns are drawn transparently. I have attempted to force this cell to be drawn transparently by handling the NV_CUSTOMDRAW and WM_CTLCOLOR messages, but have so far been unsuccessful. Am I on the right track here, or am I missing something obvious?

    C / C++ / MFC question

  • Survey: Do you drive an SUV?
    G GregH

    I have no problem with people who actually 'use' an SUV. What irks me is when on my very slow 30 mile drive to work I see half a dozen Hummers with 1 person in it driving to work. Of course, I'm sure all the people driving in the HOV lane are irked that I am driving in a car all by myself when I could be car pooling...

    The Lounge com tools question

  • CMenu & MenuShowDelay
    G GregH

    I have been searching for a way to modify the time it takes for a sub menu to be displayed when the mouse hovers over the parent item. I know I can change this setting system wide using SystemParametersInfo(SPI_SETMENUSHOWDELAY, ...) but I would not like to make a system wide change, just application specific. I believe I will need to subclass CMenu to change this default behavior, but I have been unable to find out where in CMenu the code that is doing this lives. Does anyone have any idea where/when this registry value is queried so that I can replace it with my own settings?

    C / C++ / MFC windows-admin algorithms question

  • Version control system, CVS or SVN?
    G GregH

    I've been using CVS for a few years with no problems, however over the long weekend I setup a Subversion server (along with Trac - very cool) as I am thinking about switching over at some point. If I were starting fresh I would certainly go with Subversion. The only drawback of Subversion for me is I am so used to the WinCVS GUI for accessing CVS that all the frontends I have seen for Subversion seem lacking. I'm sure I'll get used to TortoiseSVN in time though... If you haven't already, check out the Subversion book here http://svnbook.red-bean.com/[^]. It explains the revision number differences between Subversion and CVS, plus a host of other differences.

    The Lounge csharp collaboration question visual-studio com

  • SystemParametersInfo & SPI_SETMENUSHOWDELAY
    G GregH

    I know that using SystemParametersInfo with the SPI_SETMENUSHOWDELAY parameter it is possible to adjust the time it takes for a sub menu to open when the mouse cursor is held over a submenu item. Even when the flags are set to not update the user profile or broadcast the change to other windows, this is still a system wide change. Any windows opened after a change is made will use the new settings until the current user logs off then back on. I am looking for a way to adjust the menu show delay at the application level. Is there an easy way to accomplish this that I am not seeing?

    C / C++ / MFC question announcement

  • TrackPopupMenu & WM_MENURBUTTONUP
    G GregH

    That did it. Thanks!

    C / C++ / MFC tutorial question

  • TrackPopupMenu & WM_MENURBUTTONUP
    G GregH

    Is there a way to programatically cancel/close a menu that was displayed using TrackPopupMenu? I am displaying a menu using TrackPopupMenu. When that menu is rt-clicked, I handle the WM_MENURBUTTONUP message and create a new popup context menu by calling TrackPopupMenu with the TPM_RECURSE flag set. I would like all the menus to close when a selection is made from the context menu, but have not found a way to do so. Currently only the context menu is closed, not the original menu. Any ideas on how to force it to close as well? Thanks, Greg

    C / C++ / MFC tutorial 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