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
O

ohadp

@ohadp
About
Posts
135
Topics
43
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WTL resize-drag
    O ohadp

    I need to implement a GUI which has two panes with some draggable line between them that resizes both of them accordingly, like the one in windows explorer between the 'folders' and 'contents'. It would be best if this would blend in with a dialog-resize class (something that accepts several resize rules and when the dialog resizes makes sure everything is resized like you want). I'm currently using WTL's CDialogResize for this, but it lacks the ability to define scale by percentages. thanks for your time

    ATL / WTL / STL c++

  • Retrieving the position of icons on the desktop, howto ?
    O ohadp

    Where is this information stored ? Is there an interface to access it ?

    C / C++ / MFC question

  • 0x8000401a - The server process could not be started because the configured identity is incorrect. Check the username and password.
    O ohadp

    I have an application downloaded and installed by user. The main GUI executable uses a secondary COM EXE Server. During installation (Installshield) I put 2 values into the registry to tell Windows I want this COM EXE Server to run as the 'Interactive User'. * The reason why this is done isn't the clearest thing to me, apparently It's been done in the past so that this COM EXE Server can run as a service, this isn't the case now. The application is deployed onto thousands of computers. Recently I have this guy who installs but fails to run my application on 3 of his computer (4'th one succeeds), my application spits back the error '0x8000401a'. 0x8000401a = The server process could not be started because the configured identity is incorrect. Check the username and password. From what I understand Windows doesn't really want to allow him to create an instance of my COM EXE Server. My question is what can be causing this ? He said he's both a local and network Administrator, nothing problematic (that he can see). Can someone give me a clue/hint/direction about this error ? thanks

    COM sysadmin question com windows-admin help

  • Call external COM object, want to catch S_FALSE return code
    O ohadp

    I'm calling an external COM object. I want to be able to identify when it returns S_OK and when it returns S_FALSE. Any other HREUSLT returned by the COM object is properly translated by the CLR to a COMException object. Nevertheless S_FALSE is treated as a success thus an exception isn't thrown. How can I get this return code ? I look at the registers and I can see EAX change according to S_OK/S_FALSE, but I can't access that data in any way. Thanks

    C# question dotnet com

  • GUI
    O ohadp

    Flash can talk COM, so if your VC program has a COM interface, the flash program can command it to do things, and query it for data to display. It's an evolving way of writing GUIS... look at http://topicks.com/ for a demo of a program that does just that

    C / C++ / MFC c++ adobe question

  • Tab Order suddenly began going backwards
    O ohadp

    I have an application with several dialogs, all have logical Tab-Ordering. Everything was great up until a month ago when suddenly, the tab order began changing. Some dialogs presented a reverse tab-order and some a very puzzling tab-order. I've checked my resources with the built-in resource-editor in VC, checked the .rc file, used an external viewer and the order looks like it's suppose to look, but my application decides to twist it. What could cause this sort of behaviour ? Where should I look for the causes of this problem ? Is it possible that the dynamic creation of controls can cause this kind of behaviour ? How are dynamically created controls treated with tab-ordering (I'm asking although my dynamic-controls do not have the WS_TABSTOP style) ? thanks

    C / C++ / MFC help question learning

  • dynamic tooltips
    O ohadp

    Have you tried CToolTipCtrl::UpdateTipText(...); ?

    C / C++ / MFC

  • the windows ui question
    O ohadp

    If you're reffering to the resize-grip, it's appearance is not typically changable. What you can start experimenting with is overriding OnNCPaint, letting windows/mfc draw the grip, and then overriding just the grip to whatever you want it to be...

    C / C++ / MFC question design help tutorial

  • SetForegroundWindow() to a Message-Window prevents a later popped parentless-modal-dialog from showing
    O ohadp

    I have a Message-Window that goes with the System-Tray. Upon a click on the tray-icon a menu is popped. According to MSDN, I should call: SetForegroundWindow(); TrackPopupMenu(); PostMessage(WM_NULL); so that the menu doesn't stay there until a selection is made on it. In response to a certain menu-selection I show a dialog. This dialog is Modal and has no parent. When I call SetForegroundWindow() the dialog will not show, if I don't call SetForegroundWindow() the dialog will show. My window (the one receiving the message from the tray and performing the abovementioned logic) is a pure message-window (child of HWND_MESSAGE). Can someone explain the situation ?

    C / C++ / MFC question

  • My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc
    O ohadp

    SetWindowPos(&wndTop, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);

    C / C++ / MFC tutorial question

  • My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc
    O ohadp

    Sender: Sure, snippet below. My guess is that my window-style or default-message-handling somehow affects this... But I can't point out exactly what. DWORD target = BSM_APPLICATIONS; BroadcastSystemMessage( BSF_ALLOWSFW | BSF_POSTMESSAGE, &target, m_guiMsgId, 0, 0); Receiver: Sure: if (IsIconic()) ShowWindow(SW_RESTORE); SetForegroundWindow();

    C / C++ / MFC tutorial question

  • My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc
    O ohadp

    I don't follow... SetWindowPos on itself didn't do the job...

    C / C++ / MFC tutorial question

  • My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc
    O ohadp

    This has no affect :-( The only thing that changes something is : SetForegroundWindow(); It makes my window's entry in the task-bar blink, but the window doesn't jump to the foreground. Perhaps this is privellege related, my call to SetForegroundWindow(); is done in response to a BroadcastSystemMessage with the BSF_ALLOWSFW flag. I don't thinks is the cause though as my window does start blinking...

    C / C++ / MFC tutorial question

  • My Dialog-Window (not minimized), is hidden under other windows, how to make active/top/etc
    O ohadp

    I've tried: ShowWindow(SW_SHOW); ActivateWindow(); SetForegroundWindow(); My window is a derived CDialog. What's missing ?

    C / C++ / MFC tutorial question

  • ATL Executable doesn't allow MFC support, why ?
    O ohadp

    I have an MFC Extension-DLL which includse various controls I'd like to use in various places. When I use it in MFC applications it works. When I use it in ATL-Dlls it works, the wizard replaces several core methods in the Dll (DllCanUnload, etc) create a CWinApp object and all is well. It seems like I can't use my beloved MFC-Extension-DLL in an ATL Executable project. Excerpt: Executable (EXE) Select to create a local out-of-process server. This option does not allow support for MFC or COM+ 1.0. It does not allow for the merging of proxy/stub code. Why is this ? Is there a way to get pass this limitation ?

    ATL / WTL / STL c++ asp-net com sysadmin question

  • CEDit creation through Dialog-Resource, OnNcPaint not called, why ?
    O ohadp

    The deal is that during initialization, I want to trigger my version of OnWindowPosChanging. I can fake a direct call to it from PreSubclassWindow, yes, but it's a little unorthodox so I was looking for a cleaner way to do it. I guess that's just what I'll do then, thanks for the tips.

    C / C++ / MFC question learning

  • CEDit creation through Dialog-Resource, OnNcPaint not called, why ?
    O ohadp

    I've checked all the resource-ids/etc, all looks ok. PreSubclassWindow is interesting but problematic. The reason is that if I do my things inside PreSubclassWindow ``my control isn't subclassed yet, and so it's message-handlers aren't called when messages arrive :-) So I'll a little condition to the situation I was persuing earlier. What I need is an intervention-point during which the control is sized, and subclassed. Something like `PostSubclass`, or `PostCreate`, or anything of that kind :-)``

    C / C++ / MFC question learning

  • CEDit creation through Dialog-Resource, OnNcPaint not called, why ?
    O ohadp

    I have a dialog with about 15 edit controls. The controls are a subclass I've made of CEdit, CMyEdit for the matter. 2 out of the 15 CMyEdit controls don't have their OnNcPaint override called, for no apparent reason. all edit-boxes are declared the same way in the resource-editor, no special handling of any of them not in resources nor in code. I've tried overriding OnCreate, OnNcCreate (added ON_WM_XXX ofcourse) and Create itself but none of them are ever called. What am I missing out ? p.s. - what I need is a 'point of intervention' during the creation/post-creation of the edit-control during which the control is already sized and positioned correctly.****

    C / C++ / MFC question learning

  • Radio and group statics?
    O ohadp

    Two options that come into mind: 1. Make your own GroupBox and do whatever you want there :-) 2. Just throw a radio-button OVER your GroupBox, write the logic to 'connect' them, and you get a radio-group-box-thingy.

    C / C++ / MFC question

  • Pls help me...How to load a dialog from dll and display it into child frame ?
    O ohadp

    Load/Create the dialog with CDialog. Now set the parent of your dialog to be child-view window, and resize the dialog accordingly. this is a semi-hack, because the way to do it is to create a window that can host another window, or what I call a 'Pane Container' and a 'Pane'. there's nothing too special about the pane, except that you set it's parent to be the container, but the container should 'remember' the pane it contains (store a ptr to it), and resize the contained pane when the container is resized, etc.

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