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
G

GeVanCo

@GeVanCo
About
Posts
9
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to catch the 'Stop Build' event?
    G GeVanCo

    Does anyone know how to catch the 'Stop Build' event? I need this feature in an add-in. It's the intention to detect when the user has pressed this button while a make is running. So far, I couldn't find anything on the net about this subject. The add-in framework is made with the Mfc AppWizard (Dll). Thanks in advance for any help. Geert Vancompernolle Belgium

    C / C++ / MFC c++ help tutorial question

  • Is there any CodeWright forum??? i really need help
    G GeVanCo

    Hi Yaron, At first glance, strange to see something about CodeWright here on this site. But this proves still a lot of people ar using this powerful and extremely adaptable editor. In the past, I've asked the guys at StarBase (formerly known as Premia Corporation), if there was somewhere a CodeWright forum. But unfortunately, so far, it doesn't seems to exist, at least not under their 'wings'. I could have used such a forum myself also very well in the past, but I always had to find the solution myself (which is highly interesting, but sometimes also heavily time consuming... ;-) ). Anyhow, can you more specific tell us what you're looking for? Perhaps other people, who are heavily using CodeWright, can help you. Regards, Geert

    C / C++ / MFC help question

  • AutoBld Add-In
    G GeVanCo

    Hello, No doubt everyone knows there's a fine utility in the Visual C++ Add-In sample directory, called AutoBld Add-In. I'm currently adapting this DLL to be used in our development environment. One of the options of that DLL, is sending a mail with the results (amount of errors/warnings) of the different compilations done. I do, however, want to have more information into that mail message. I also would like to have the output of the Build tab in my message. Does anyone know how to 'grab' the output of that Build window? Is there a possibility via the Application object (like you have e.g. the properties 'Errors' and 'Warnings') or is there another way to do it? Since this is my first 'touch' with COM-alike stuff, any help would be highly appreciated. Thanks very much in advance, Best regards, Geert

    C / C++ / MFC c++ com tools help tutorial

  • How do I create popup submenus dynamically
    G GeVanCo

    Hi again, Mike, I've seen I misspelled one (or more???) word(s): 'popupating' should of course be 'populating', but since I'm neither English nor American, so my English is not so perfect ;-) Also, I've seen that the processed code (after submitting the article) is removing tabs and/or spaces, so the code snippet is sometimes hard to read. Sorry for that, but that's out of my control... Regards, Geert

    C / C++ / MFC question learning

  • Can I make a Menu Item invisible?
    G GeVanCo

    It should be possible if you build your menu runtime (so, not with the resource editor). Geert

    C / C++ / MFC question

  • How do I create popup submenus dynamically
    G GeVanCo

    Hi Mike, Perhaps this will be of interest to you. I've once made a DLL to be used in CodeWright. This DLL was adding a menu item to an existing menu bar (the one of CodeWright itself). After popupating the pull down menu of the new menu, I added some popup items, which I think is also what you want to do. I've included here some code snippets. Hope they are useful to you ;-). First of all, I'm trying to get a pointer to the own made menu item, which I need to start building up the popup menu's. After that, I'm having a temp variable (pointer) which I'm using to build several submenu's in the pull down menu. I've added some comments to make it more clear of what has been done. Hope it's clear enough. I'm using this 'tool' without any problems and the popup menu's are working fine, even in an applications of which the base is not my code (in this case here, it's CodeWright in which I had to fit this mechanism). B.t.w.: even Premia (the company who makes the CodeWright editor), they couldn't give me a clear answer on what I wanted to do, so after many hours of trying and struggling, I finally found it myself... As you can see from the code snippet, also graying or check-marking the popup menu item is in (and as such, not so difficult to do ;-) )... /////////////////////////////////////////////////////////////////////////////// // Get a pointer to the menu of which we want to change an item. // 'pTestMenu' is a pointer to a menu item of a main menu. After retrieving this pointer, // we can add/change a submenu to this item. // int temp_location = 0; CString temp_string; m_pWnd->GetMenu()->GetMenuString( temp_location, temp_string, MF_BYPOSITION ); while ( temp_string != "&Gvc" ) { m_pWnd->GetMenu()->GetMenuString( ++temp_location, temp_string, MF_BYPOSITION ); } // Get the pointer to the own-made menu item CMenu* pTestMenu = m_pWnd->GetMenu()->GetSubMenu( temp_location ); // Make a temp. variable of the type CMenu, to create the cascading menu 'on the fly' CMenu menuPopup; //////////////////////////////////////////////////////////////////////// // Creation of the popup menu for the Clean selection: "Target" or "All" // menuPopup.CreatePopupMenu(); menuPopup.AppendMenu( MF_STRING , ID_GVCMENU_CLEAN_TARGET , "Only target items" ); menuPopup.AppendMenu( MF_STRING , ID_G

    C / C++ / MFC question learning

  • Learning MFC
    G GeVanCo

    Hi, Another very good book is 'Programming Windows 95 with MFC', written by Jeff Prosise. Altough one could get the impression this book is 'outdated' (because of the number '95' in the title ;-) ), it isn't outdated at all! This book does not talk a lot about the Visual Studio environment, but mainly about how to efficienty use MFC. Jeff is starting from the 'good old days' by giving an example of how Windows programs had to be written in the past. Then he gradually changes over to writing Windows programs nowadays with the help of MFC. He does this really nice. He also gives a lot of pitfalls you have to pay attention to. It's a must if you want to know more about efficient use of MFC. Perhaps there's already a new issue of the book (with '98' or even '2000' in the title??? ), but if you still can get the 'old' one, don't hesitate to buy it. ISBN number: 1-55615-902-1. The issue I have is from 1996, but still very much up to date for the basic MFC stuff. Also the book of Eugene Kain, 'The MFC Answer Book', is very instructive and educational, as already mentioned in another reply on your question. To have a taste of the book, just visit his web site: http://www.mfcfaq.com . You can have some code snippets and other stuff from his book. This is really a 'try before you buy' site, which I very much appreciate. Hope this info is useful Best regards, Geert

    C / C++ / MFC c++ learning question

  • Executing an exe
    G GeVanCo

    Hi, Why not trying the 'system' command? I've done it already a few times to execute a Dos command like you would give it on the command line, and this works fine. Give it a try? Best regards, Geert

    C / C++ / MFC help question

  • Visual Studio environment
    G GeVanCo

    Hello, When opening a project in Developer Studio, the FileView pane of the Workspace normally shows the files in an alphabetical order. Recently, I've seen in my workspace the opposite: the files are shown in a descending alphabetical order. Does anyone know how to change this file representation back again to the ascending alphabetical order? Thanks in advance, Geert

    C / C++ / MFC workspace csharp visual-studio 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