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
W

Wayne Janaway

@Wayne Janaway
About
Posts
9
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CList/CArray duplicate link problem
    W Wayne Janaway

    I have only created one definition of SerializeElements, the one in class CGroup. This was needed to serialize the items pointed to rather than the ptrs in the list. I'm guessing that the linker is somehow first linking the default version when it encounters it in CMainFrame, then is unable to resolve what it percieves as an alternate version ( which does differ in function ) in CGroup. Actually, the SerializeElements method will never be used in the MainFrame Array, but the linker doesn't know that. --WJ

    C / C++ / MFC

  • CList/CArray duplicate link problem
    W Wayne Janaway

    I have a CList of ptrs (ptrList) to CItems in a supporting class (CGroup) of my program, with an override of SerializeElements. This works fine until I add a second CArray or CList of the same type of ptr as a member of CMainframe. Then I get a linker error: Group.obj : error LNK2005: "void __stdcall SerializeElements(class CArchive &,class CItem * *,int)" (?SerializeElements@@YGXAAVCArchive@@PAPAVCItem@@H@Z) already defined in MainFrm.obj I gather that the linker is unable to deal with an alternate version of the SerializeElements function, but how do I get around this while keeping the SerializeElements override in the CGroup.cpp file? Any help is appreciated. Thanks WJ

    C / C++ / MFC

  • list box item emphasis
    W Wayne Janaway

    Hi. Does anyone know of a way to emphasize or highlight specific items in a list box, and/or in the list portion of a combo box? eg: The list box contains a number of items, all of which must be visible, but only some of which are "valid" selections for the user (invalid items can be selected, but have different effects). I need a visible difference between valid & invalid choices within the box (different text color, check mark, etc). I would rather not get into owner drawn, since that is completely new to me. Thanks. :) Wayne Janaway

    C / C++ / MFC

  • trapping dlgbar sys commands
    W Wayne Janaway

    I'm using a derived class with one additional member -- a boolean flag representing the bar's visibility state. Thanks again.

    C / C++ / MFC

  • trapping dlgbar sys commands
    W Wayne Janaway

    Thanks. That sounds like it might be what I need, but what are the parameters for DelayShow()? As for the other, it's not a problem with resizing as such, but rather a result of any user action on the dlgbar window itself. This particular bar is set to float or dock, and it contains a listcontrol which is its main feature. Whenever the bar is moved, the input focus switches to the bar itself, and stays there. I need it to return to the listcontrol after the move is complete ( as soon as the mouse is released ). Thanks again. :)

    C / C++ / MFC

  • trapping dlgbar sys commands
    W Wayne Janaway

    I have a dlgbar in mainframe, with its resident controls accessed directly by cmainframe ( as modeless dlg ). The problem is that certain user actions on the dlgbar ( closing it via the system close icon, or moving / resizing it ) need to cause additional action. I have tried deriving a class from CDialogBar to manage the bar and adding to the message map to trap these actions, but do not seem to get any effect, except during program initialization or shutdown. ( eg: I tried processing wm_destroy in CDerivedDialogBar and got an effect only when the program terminated. I tried processing wm_close and got no effect at all. ) Anyone know what messages I need to process or how I can trap these actions? This is driving me nuts trying to find solutions. Thanks:confused:

    C / C++ / MFC

  • selection in clistctrl
    W Wayne Janaway

    Search as I may, I cannot find how to set a selection in a clistctrl from within code ( as in preseting a selection when the control is first populated ). Also, I notice that whenever the dialog bar containing the list control is significantly moved ( un/docked, un/hidden ) the highlighted selection disappears. Can anyone tell me how to handle these things? I imagine they're fairly simple. Thanks in advance.:confused:

    C / C++ / MFC

  • Filling a combo box from outside its dialog
    W Wayne Janaway

    I have a droplist combobox in a modal dlg called from mainfrm in an SDI. The combobox must obtain its initial selection ( a CString ) from the selected text in a listcontrol in a dlgbar, also in mainfrm. How do I accomplish this?

    C / C++ / MFC

  • docking dialogbars
    W Wayne Janaway

    I am quite new to programming and trying to self learn what I need. I am looking for a way to create the effect of a fully dockable toolbar or dialogbar which can realign as needed for any edge. Either to rearrange the template of the dialog bar according to its dock position or to include a list box, simple combobox, and several standard (not bitmap) pushbuttons in a toolbar or similar setup. Can anyone help with this? Thanks

    Article Writing
  • Login

  • Don't have an account? Register

  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups