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
L

lclarsen

@lclarsen
About
Posts
10
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Inheritance - what's your take on this?
    L lclarsen

    Chris, I guess I was hoping you could offer some powdered eggs or something, so I wouldn't have to break any :) Anyway - the conclusion seems to be there isn't really any perfect solution to this. I somehow suspected that. Thanks for the input everyone :thumbsup:

    Design and Architecture c++ algorithms oop question

  • Inheritance - what's your take on this?
    L lclarsen

    Hi, I'm in the process of defining some classes for the elements in a type of listbox control. I'm thinking about having a parent class from which, each element inherits, with common information such as ID, title etc. But the individual elements in the list will have properties that are specific to their own type. Some will have a fileName attribute while others wont. The parent class is handy for sorting operations and other generic tasks, but I will need to differentiate between the instances at some point in my code. Should I have a type attribute in the parent class to tell me what attributes to read for a specific instance? I don't wan't to have virtual members in my parent class that are only meaningful for some instances. Maybe the elements don't have enough in common to warrent inheritance?! BTW, I will not have access to reflection techniques to tell me which type and instance is. Unmanaged C++ to be exact. Thanks.

    Design and Architecture c++ algorithms oop question

  • Visual Studio Addin for source code editor tooltip [modified]
    L lclarsen

    Hi, I want to write an addin for visual studio, that will display a tooltip showing a certain datamember, when I hover the mouse over a MyClass object f.ex. Is this at all possible? I don't know how to get the information about what the mouse is hovering over. I need some links to reference docs. Thanks!

    modified on Tuesday, May 18, 2010 8:32 AM

    C / C++ / MFC csharp visual-studio tutorial question

  • Disabling submenu in Win32
    L lclarsen

    As I indicated, submenus don't have id's as far as I can see. Otherwise I would have used the ID... It is a submenu (flyout) in the menu bar that I want to disable. /lacla

    C / C++ / MFC question

  • Disabling submenu in Win32
    L lclarsen

    Hi, I'm trying to disable a submenu in win32. It's working ok, but is there an alternative to this:

    HMENU showMenu = GetSubMenu(currentMenu,2);
    EnableMenuItem(showMenu,4,MF_BYPOSITION | MF_GRAYED);

    I don't like MF_BYPOSITION, because the code will break if we add new menu items to 'showMenu' later on. Why do sub-menus not have ID's, so that I could just call EnableMenuItem() directly...? Thanks! /lacla

    C / C++ / MFC question

  • How to create IE Favorites like TreeView?
    L lclarsen

    Hi Tom, Finally an answer :-) Thanks! there are a lot of helpful stuff in that article! I also need to drag a semi-transparent icon as the article explains, so that's really cool. By now I'm actually drawing the line myself as you also suggest. I think I need to work on it a little bit, though :-) Thanks again.

    .NET (Core and Framework) question tutorial

  • How to create IE Favorites like TreeView?
    L lclarsen

    Hi, I need a TreeView control with the ability to rearrange nodes and with the insert indicator (the horizontal bar) that you get in "Favorites" in IE when you add or drag-drop a link. I'm pretty sure how to do the rearranging bit, but how do I get the insert indicator when an item is dragged around in the treeview? Do I have to draw it myself? And if so, how can I do that? Thanks!

    .NET (Core and Framework) question tutorial

  • Hex/decimal/binary textbox. How?
    L lclarsen

    Hi, I would like to implement a textbox into my application that allows the user to enter hex, decimal or binary values (based on the selection of a radiobutton group. For hex values, for example, I would like the entered data to be byte seperated by spaces like this: "0E 3C 32...". I was thinking that a masked textbox was the way to go, but a masked textbox only allows for a fixed length mask, it seems. AFAIK it is not possible to specify a mask that is repeated for the length of the entered data. Do I have to parse the content of the textbox and reset the contents whenever the user enters a single character, or is there a much simpler solution?

    .NET (Core and Framework) tutorial question

  • Continuous update of PrintPreviewControl
    L lclarsen

    tatchung, My problem is not how to handle events, but how to access the PrintPreviewControls graphics context on demand. The graphics context is part of the PrintPageEventArgs which is automatically passed to the PrintPage event handler upon creation of the PrintPreviewControl. Regards, Lars

    C# question csharp graphics help announcement

  • Continuous update of PrintPreviewControl
    L lclarsen

    Hi, I'm quite new to C# and I have been fiddling around with a little problem for some time now. I have a form with a PrintPreviewControl on it. I also have a RichTextBox on the same form. Now, I want to update the PrintPreviewControl contents whenever I type something in the RichTextBox. As far as I can see, the PrintPreview is only updated when it is created (it seems the creation of the PrintPreviewControl fires the PrintPage event with the previewers graphics context). My question is, how can I update the PrintPreviewControl on demand? Thank! Regards, Lars

    C# question csharp graphics help announcement
  • Login

  • Don't have an account? Register

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