Nobody made control with scrollbar ?
leander
Posts
-
MouseWheel and ScrollBar with CWnd -
MouseWheel and ScrollBar with CWndHye, 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.
-
Display info on file in explorerHello, 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...)
-
Update AppName in TaskBarI have try it, but it doesn't works. (And I must put a
break
after theSetWindowText( szPercent );
because I must give back CPU time to my algorithm. My code seem like this :void BigFunction() { for(i=0; i
-
Update AppName in TaskBarI 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 codeAfxGetApp->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 ? -
Problem with Dumping Object (new of MFC) and FreeLibraryI 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"
-
Problem with Dumping Object (new of MFC) and FreeLibraryI'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.