How to load .png , .jpeg images using MFC ?
Hi i want to load png images and jpeg images. can anyone help me? ...
Hi i want to load png images and jpeg images. can anyone help me? ...
I have a simple recursive function RCompare() that calls a more complex function Compare() which returns before the recursive call. Each recursion level uses 248 bytes of stack space which seems like way more than it should. Here is the recursive function: void CMList::RCompare(MP n1) // RECURSIVE and Looping compare function { auto M...
I have searched through internet & found that there are no any direct method that disable nodes of CTreeCtrl control. check one post at http://www.ucancode.net/faq/MFC_CTreeCtrl-CListCtrl.htm & also on codeguru.com but not clear about how to disable node of CTreeCtrl. ...
Hi to all. Is it possible to have a 32x32 images on toolbar while keeping 16x16 in menu. I created toolbar resource (IDR_TOOLBAR1) and set it's button size as 32x32 and load it: if (!m_wndToolBar.CreateEx(this,...) || !m_wndToolBar.LoadToolBar(IDR_TOOLBAR1 )) { ... } When started toolbar correctly shows large btn images but menu is a...
I need to display text along with values of variables in a CEdit controlled Edit Control Box. How do I do it ? Currently I'm using SetWindowText(), but that only takes a string...how do I get a formatted string to display in the edit control? Example: printf("The answer is %d\n",ans) -> how do i print the same message in a Edit Control...
Hi, when all working project get modified by statically linking MFC (before was shared) this errors raised trough compiling: Error 36 error LNK2001: unresolved external symbol __imp____p__iob mysys.lib Error 37 error LNK2019: unresolved external symbol __imp____p__iob referenced in function __db_push_ libmysql.lib Error 38 error ...
When editing a resource in the Visual Studio resource view, I find that a lot of locale specific information is added to generated rc file. The locale information added is specific to whatever locale my machine is running at the time. It appears to be a project specific setting, because I don't have the same issue with other projects in ...
Hi, How do i close (using code) the last created CView in my MDI app. from the CMainFrame class ? TIA. ...
I want to create an application which main window has canvas (or something where I can draw custom things) and some controls, like buttons and edit fields. But I got stuck about how to do it. I tried to create MFC with SDI, but how to add control to CDC..? I tried to create one dialog with buttons and edit fields, but which control refe...
I see that you can enable/disable using the EnableWindow method, but how do I get it's current state? ...
Edited by OP. My program is in need of a lot of cleanup and restructuring. In another post I asked about leaving the MFC DocView framework and going to the WinProc & Message Loop way (what is that called for short?). Well at present I am thinking that I should clean up what I have in Doc View and perhaps later convert to non-MFC it th...
I have a solution that I am trying to build in Visual Studio which gives the following error. Project : error PRJ0019: A tool returned an error code from "Copy the executable to HAMR platform" The last few lines of the build log are as follows: Copy the executable to HAMR platform The system cannot find the path specified. Project : er...
Someone knows some way of putting only 16 colors in the CColorDialog of Visual Studio c++ when it is opened? ...
I have a CWnd Derived object used in a dialog. I need to be able to drag it anywhere in the dialog. I have a code overriding OnNCHitTest for moving a dialog dragging it from a place other than the title bar. Is there any equivalent code to do the same to move this CWnd. The following code isnt working. UINT CBaseSliderBtn::OnNcHitTe...
Hi I have a VC++ application and in my application i have some basic file operations. Below is the defaulting code CStdioFile cFile; CFileException e; CString sReport; CString sHtmlfile = "testreport.html" OutputDebugString((sHtmlfile)); if (!cFile.Open(sHtmlfile,CFile::modeCreate | CFile::modeWrite, &e )) { } The problem is my app...
I'm coding an app in MSVS 2008, which has a ComboBox control which I initialize thru the code as below: static char* OptionString[4] = {"Opt1", "Opt2", "Opt3", "Opt4"...
Hi, I m developing applcaiton in VS2008 VC++.net I want to move the application to secondary monitor.Not by clicking and dragging using mouse. Is there any function like MoveToMonitor by pressing the button or any shortcut keys. Then it should move to secondary monitor. ...
I have a win32 GUI (MFC) application which I need to port to a WIN CE environment. I keep encountering undefined identifiers. What is the best way to deal with this- is there some site where i can get a mapping of some kind between win32 supported features and corresponding wince features (even if they are not supported, the information ...
I need to create a console application that has a main() function and pop a modeless dialog, so the console can still work in parallel to the modeless dialog (do other work, like communicating with the modeless dialog). Whatever i tried, i could only pop a modal dialog. (where the console is in hold till the modal dialog close itself). ...
How do we specify the placement position of a window using MFC in Win CE? It does not support the WINDOWPLACEMENT class that is available in Windows. ...