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
D

DeepT

@DeepT
About
Posts
18
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can I create a dialog template for other dialog boxes?
    D DeepT

    I figured as much. I was just hoping there was some mechanism I did not know about. I am not sure what all I want, other than for all the dialogs to have the same size and base styles. It may change which will be a PITA if I have to redo a bunch of dialogs because someone decides they want them just a little wider or some new logo graphic of a different size.

    C / C++ / MFC question learning

  • Can I create a dialog template for other dialog boxes?
    D DeepT

    I am not sure this is possible, but I would like to create a basic dialog that serves as a template for other dialog boxes. Ideally Ill make the first base dialog with the size and properties I want. At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.

    C / C++ / MFC question learning

  • Property Sheets & Pages questions
    D DeepT

    If you just make one property page, you get one tab shown at the top. I didn't want ANY tabs to be shown. If you use wizard mode, you get the buttons. I do not want any buttons. I hope I am being clear on what I wanted to do.

    C / C++ / MFC graphics design help tutorial question

  • Property Sheets & Pages questions
    D DeepT

    Thanks for that, Ill look into it. I was pursuing something similar on my own, giving up on Property Sheets / pages altogether. It was just overlaying modless dialog boxes inside the main one.

    C / C++ / MFC graphics design help tutorial question

  • Property Sheets & Pages questions
    D DeepT

    I have a dialog based app I am writing. In this app I am going to have to present different information to the user and in some cases ask for some input in various orders depending on a given situation. I figured property pages would be a great solution since I could design a bunch of panels and then show them in whatever order I want, as needed. The fundamental problem is that in a given area I just want to show just the panel I made. In one mode I get "tabs" like a tab control. In another mode (Wizard Mode), I get a bunch of buttons at the bottom. If I could hide the tabs OR hide all the buttons in wizard mode, it would work. I also have a bitmap logo on top, and I thought if I could get the bitmap to draw itself after the property sheet, I could hide the tabs underneath it, that might work. I do not know how to make the property sheet object draw itself before the bitmap logo at the top. So is there a way to do this or just render my panels with no extras at all inside my dialog box?

    C / C++ / MFC graphics design help tutorial question

  • Compiler Question: Use of MFC : Use Standard Windows Libraries
    D DeepT

    Thanks for all your help. I think I understand now. I would assume an MFC application compiled with Standard Windows Libraries would still be dependent upon various MFC dlls such that the end users machines might still need the VC redistributable package installed, where as the Static MFC linking gets by that requirement. In other words, going with Standard Windows Libraries buys me nothing unless I am genuinely MFC free.

    C / C++ / MFC question c++

  • Compiler Question: Use of MFC : Use Standard Windows Libraries
    D DeepT

    Ok, thanks that explains that. So is this linked version closer to the MFC-Static mode or shared DLL mode?

    C / C++ / MFC question c++

  • Compiler Question: Use of MFC : Use Standard Windows Libraries
    D DeepT

    If my understanding is correct, then why can I build and run an MFC based Dialog application using the standard windows libraries? I have actually set this application to use the standard libraries and hit build and run and it does. So why does this work?

    C / C++ / MFC question c++

  • Compiler Question: Use of MFC : Use Standard Windows Libraries
    D DeepT

    I have a basic MFC dialog based app so I am definitely using MFC. The official documentation says, "Non-MFC projects can select Use Standard Windows Libraries to link to various Win32 libraries that are included when you use MFC". The implication is that you could not build / link / run an MFC application if you chose this compiler option, right? However, you can build and run an MFC application with this option. What I want to know is, what is really going on or why does an MFC application work? If I use this option can I be free of MFC DLL dependencies? I have spent some time googling this, but I can't find any answers to this question.

    C / C++ / MFC question c++

  • Control questions on Property pages
    D DeepT

    Thanks, that worked.

    C / C++ / MFC tutorial

  • Control questions on Property pages
    D DeepT

    I have a property page with at least 2 edit controls. When the user presses enter on the first edit box, I want the 2nd edit box to become active and gain focus. I have tried:

    void PropPageHello::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
    {
    // TODO: Add your message handler code here and/or call default

    CPropertyPage::OnKeyDown(nChar, nRepCnt, nFlags);
    

    }

    If you put a break pointin this function, it is never hit. I am not sure how to capture the enter key and set the focus of the next item.

    C / C++ / MFC tutorial

  • Working with the Shell and an object in a virtual folder
    D DeepT

    I am trying to enable and disable a network adapter (not release and renew). It seems the only way to do this is through the shell object. I have been grinding on this problem for over a week. Currently I am stuck trying to apply a 'verb' to an contextmenu object. Here are two relevent code snippets: // Now loop through the menu and see if we see the enalbed menu item. bool FoundOne = false; bool ContextMenuLoop = true; CString MenuItemName; CMenu MyMenu; MyMenu.CreatePopupMenu(); MENUITEMINFO MenuItemInfo; ZeroMemory(&MenuItemInfo, sizeof(MenuItemInfo)); MenuItemInfo.cbSize = sizeof(MenuItemInfo); MenuItemInfo.fMask = MIIM_ID | MIIM_TYPE; char Buff[50]; ZeroMemory(Buff, sizeof(Buff)); MenuItemInfo.cch =49; MenuItemInfo.dwTypeData = Buff; MenuItemInfo.fType = MFT_STRING; int Offset = (int)ContextMenu->QueryContextMenu(MyMenu, 0, 1, 30000, CMF_EXPLORE); unsigned int J; // Loop through all menu items and see if it has a Disable option for (J = 0; J < MyMenu.GetMenuItemCount(); J++) { int T; T = MyMenu.GetMenuItemID(J); if (T > 0) { MyMenu.GetMenuString(T, MenuItemName, MF_BYCOMMAND); MyMenu.GetMenuItemInfo(T, &MenuItemInfo); if (DISABLE_VERB == MenuItemName) { FoundOne = true; break; } } } At this point I have the context menu object, and actually found the DISABLE_VERB. I also MenuItemInfo for this particular menu item. So far so good... // Now that we found one, we need to cycle it if (true == FoundOne) { HRESULT Hr = NULL; CMINVOKECOMMANDINFO Cmd; ZeroMemory(&Cmd, sizeof(Cmd)); Cmd.cbSize = sizeof(CMINVOKECOMMANDINFO); **Cmd.lpVerb = MAKEINTRESOURCE(MenuItemInfo.wID);** Hr = ContextMenu->InvokeCommand(&Cmd); int L = GetLastError(); Sleep(100); Cmd.lpVerb = ENABLE_VERB; // Hr = ContextMenu->InvokeCommand(&Cmd); } The line in bold is the key line. Its where I set my verb. If I use the DISABLE_VERB, which I just found, it gives me an invalid parameter error (80030057). I set the verb directly, such like Cmd.lpVerb = DISABLE_VERB; when I get this error. I have no idea why since I searched for it and found it. Next I tried using the wID (as it is done in this code snippet) and while it accepted the parameter, it did the wrong thing (It tried to bridge network connections). I thought the index might be off by +/- 1, but that didn't help. Can anyone tell me what I

    COM help database sysadmin linux announcement

  • If I have multiple NIC with IP addresses, how do I...
    D DeepT

    Determine which NIC is the one that is providing me with 'default' internet access? For example, you open IE and go to google. Which NIC is it using? Currently i use gethostbyname() which does list all the IPs the machine has, but I can't figure out a way to tell which one is the active one.

    C / C++ / MFC question tutorial

  • Wanted: Articles on Managed DX9 in C#
    D DeepT

    I have been trying to develop a game in my spare time using C# and DirectX9. Asside from the Miller book, I have found very little information on this. It proabbly hurts that I do not have experience programming in DX before directx 9. I would really like a whole mess of articles (even a new section) dedicated to DX9 under the managed C# enviroment. There are lots of little things I do not know how to do, even after reading the Miller book. For example: 1. How to write an application that lets you toggle between windowed and full screen mode? 2. How do you do transparent maps? Just using an RGBA image as a map doesn't work, although it works just fine under openGL. 3. So you have some complex dynamically generated object and your application chugs, how do you get it to run really fast? I am sure there are 100s of little knick-kanck problems like these that are not well (or even addressed) in the Miller book. Basically I would like a series of articles written that teach you everything there is to know about managed directx 9.

    Article Writing game-dev graphics tutorial csharp question

  • Need help detecting switching users
    D DeepT

    I was looking at task manager and a bunch of things are running as 'SYSTEM'. If I switch users, they are still running with no duplicates. I am thinking I can run my app as user system it will solve my problem. However, I do not know how to do this. Also, are there any restrictions a process running under user system have? Can something running under user system still pop message boxes and web pages that will be visible to all users? Thanks, --DeepT

    C / C++ / MFC help question

  • Need help detecting switching users
    D DeepT

    Well to answer these 3 replies.. 1. I am not using a 'windowed' application, so I do not have any windows message loop, and therefor I can not look for a switch session message, although now that I know its called a 'session' I may be able to find more help. However I am unsure exactly what you mean by sessions here, so it may be a red herring for me. 2. Just finding out if another instance of my program is running does not help me. I need to find *which* is the one that belongs to the currently active user. 3. My program is talking to a server and it monitors the local users machine. The problem is two fold. For one machine the server will get two reports (or more, one for each user logged in) from the same box. The second problem is the server tells my program to give the user some information, such as they do not have any anti-virus software running. The problem is, if user1 and user2 are logged in, with user2 as the active user, the user1 instance may pick up the message and user2 will never see it. So what I need is to figure out if *this* instance is the active user instance. If the answer is no, I go to sleep until it is. Otherwise I operate normally. So it doesn't really come down to having only one instance of my program running or any interprocess communicatiion. I just need to tell if *this* user is the active one, and so far, I can not find a way to do that.

    C / C++ / MFC help question

  • Need help detecting switching users
    D DeepT

    I suppose so. Its standard windows XP, both pro and home can do this. I understand all NT kernal OSs can do it as well although its not as easy to do as it is under windows XP.

    C / C++ / MFC help question

  • Need help detecting switching users
    D DeepT

    I have an application I am writting that needs to run for any user logged on. The problem lies in the fact that if User1 switches out (not logs out), and then user2 logs in, another instance of my application runs, which is ok, except the compete with each other. What I want to happen is to be able to tell if the user the program is running under is no longer the active user, then my program can sleep until it becomes the active user again. IE: User1 longs in, starts instance 1, and switches out. User2 logs in, starts instance 2. Instance 1 knows its no longer active and goes to sleep. User2 eventually switches out, and user1 comes back. Instance2 goes to sleep, and instance 1 wakes up. Any ideas?

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