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
L

leander

@leander
About
Posts
7
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MouseWheel and ScrollBar with CWnd
    L leander

    Nobody made control with scrollbar ?

    C / C++ / MFC c++ question

  • MouseWheel and ScrollBar with CWnd
    L leander

    Hye, I have create my own control which derived from CWnd. In this control their are ScrollBar what I manage in code. I work perfectly except for the mouse Wheel ! I never receive the message WM_MOUSEWHEEL. I also check with spy++ and I didn't receive to. Who can't I manage the mousewheel for my custom control (MFC) like other windows control. I must had a style to the windows ? François.

    C / C++ / MFC c++ question

  • Display info on file in explorer
    L leander

    Hello, I have an application which have a file format use for its files. In the explorer, then I display the "Properties" of a file of my application, I didn't see any information of my file. I want to put some informations in my file (version, user, description, bitmap, etc) which can be view in the explorer when the user display the properties of my files. How I can do ? I have search in the msdn without success... And, if someone know, how I can associate a bitmap to a file (like bmp, jpg, MAX file, etc...)

    C / C++ / MFC graphics question announcement

  • Update AppName in TaskBar
    L leander

    I have try it, but it doesn't works. (And I must put a break after the SetWindowText( szPercent ); because I must give back CPU time to my algorithm. My code seem like this :

    void BigFunction()
    {
          for(i=0; i
    
    C / C++ / MFC c++ algorithms debugging question announcement

  • Update AppName in TaskBar
    L leander

    I want to force the update of the title of my application which appears in the taskbar. I explain : In my application (MFC), I have a Big Algorithm which take time. In the main loop of this Algorithm, I update the application name to display the percent. (The name look like : "MyAppli - 15%"). The Title of my application is correctly update by windows, but the Title of my application in the taskbar was not update until the end of the algorithm. If I put a breakpoint in my algorithm, visual update the title in the taskbar... So I image, my algorithm use to CPU, to let the taskbar update itself. I have try to add this code in the main loop when I change the title :UInt32 ui32GotMsg; MSG message; SetWindowText( szPercent ); // translate messages while (true) { ui32GotMsg = ::PeekMessage( &message, NULL, 0U, 0U, PM_REMOVE | PM_NOYIELD ); if (0 != ui32GotMsg) { // Translate and dispatch les messages ::TranslateMessage( &message ); ::DispatchMessage( &message ); } else { break; // Stop dispatch and return to the MainLoop. } }
    But, the title in the taskbar doesn't update... I have try to put the code AfxGetApp->OnIdle(0) just after the 'SetWindowText()' but it doesn't work. How I can do to force the update of the title of my application in taskbar ?

    C / C++ / MFC c++ algorithms debugging question announcement

  • Problem with Dumping Object (new of MFC) and FreeLibrary
    L leander

    I try to turn off the call() to FreeLibrary() to Debug my leak, but it's little complicate to do it, because I have static object how make allocation with a memory manager (only for malloc and free, not for new and delete). So if I don't call the FreeLibrary the destructor off my static object is not call, and i have some crash when I free my memory manager. So for the moment, to debug leak, I remove the Freeliberary() and I don't release my memory manager to see the leak. But I hope to find an other solution without changing some code to with memory leak. My application and my DLL are compile in Debug with option "Multithread DLL"

    C / C++ / MFC question help c++ performance announcement

  • Problem with Dumping Object (new of MFC) and FreeLibrary
    L leander

    I'm french, so I hope you will excuse me for my poor english. I have an MFC application which load lot of DLL. In this Dll I make allocation with new, so It use the MFC checking system for leak memory. And when I terminate my application, I free all my librairies with function 'FreeLibrary()'. But If I have some leak memory in a DLL the MFC Dumping Leak will display to me : Dumping Object-> #File Error#, etc.... I don't have the FileName. MFC can't find the name of the File (__FILE__) because the memory where the FileName where store was allocate in the DLL where the 'new' is made. So when I call the function 'FreeLibrary()' on my DLL, all memory which containt '__FILE__' were release. So how can I do to see my memory leak even if i have call FreeLibrary ? (I must call function FreeLibrary() otherwise I will have lot of problems with my application). Thanks you for reading my question.

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