I want to execute some code when the user selects a row in a CListCtrl (report view, I don't care about the other viewing modes).
How do I catch this event? is there some message I can map or a method like "OnSelectionChanged" or something like that?
...
Does anybody has a hint for the following problem?
I have a derived class from CPaneDialog, it contains just one button. I want to show a tooltip if the mouse is over it. For this I use CMFCToolTipCtrl:
// Create the ToolTip control.
m_ToolTip.Create(this, TTS_ALWAYSTIP | TTS_NOPREFIX);
m_ToolTip.Activate(TRUE);
CMFCToolTipInfo params...
My App is MFC based and uses the CToolTipCtrl to implement Tool Tips. The Tool Tips are in a string table resource and each tool tip is loaded with LoadStringW. Try as I might I cannot get the Tool Tips to display over multiple lines. Each tool tips is displayed as a single line.
I tried adding \r\n &\n /\r/\n to the middle of a tool ...
I can't seem to get a CMFCButton to be displayed in Vista style in a dialog box application. I'm using VS2008 with MFC Feature Pack.
Here are some steps to reproduce my problem:
Create a new MFC Project;
Specify a Dialog based project.
Add two buttons to the main dialog.
Add a variable for each button. Make one of the variables a CBut...
I have tried several methods, but problems always exist. Sometimes the sub-window didn't refresh and sometimes the sub-window will keep blink.
This is a sample project that i have written
http://rapidshare.com/files/283950611/TestProject.7z.html
My method to implement that is:
Put a scroll bar on the top of sub-window, whenever the scro...
I'm having a problam with an MFC app. I open a modal dialog, press F1, HTML Help pops up with the appropriate context sensative help. I close the Help Window and can then press any shortcut key (such as Ctrl+O for open) and the app will open the file open dialog, even though the modal dialog is still visible and should have the keybord f...
I need to display the number of people who are interested in .and every interest have a name, this need to display too.
But in crystal reports, once there are 50 interests, all the barchart and interest name will be crowded together but not auto-size them.
How can I solve this problem ?
...
Anyone knows what this mean? Care to shed some light?
Got this warning while compiling a MFC project in VS2005.
..\..\..\Shared\res\zenOn_common.manifest : manifest authoring warning 81010002: Unrecognized Element "requestedPrivileges" in namespace "urn:schemas-microsoft-com:asm.v3".
...
I have moved my Microsoft Visual Studio 6.0/C++/MFC application to Visual Studio 2008 SP1 using the new MFC Feature Pack classes. I explicitly use nothing from the .NET Framework. However, we have trouble installing on a system which does not have .NET Framework 3.5 SP1 installed on it already. Installshield fails to load an applicati...
My application used to use an MFC CEdit control and we had no problems with wide character (Unicode) strings. After switching to a CRichEditCtrl, it seems that Unicode is no longer supported. Chinese characters become "??" and so forth. I have read that CRichEditCtrl uses RichEdit* under the hood and I have played around with trying to c...
I have a project which have three dialog, Let's say A, B, C.
And A contain B & C, B contains C.
They all are inherited from a DialogBase class
and have a setBitmap function to set a background image.
And I have add the relationship that every time drag on C, B will drag as well.
and B is a transparent dialog!
When onLbuttonDown is trig...
Hi,
I am using VC9, I've a CEdit control whose contents are reset to default test (say - "fill-in") at the click of a button and then i call SetFocus for the CEdit control. The problem is that the cursor blinks at the start of the default text, and i want it to blink an the end of the default string.
How can this be done?
...
please give me some reference about the ui rendering mechanism
thanks~
...
I have implemented tool tips seemingly successfully in an app which is MFC based and uses CPropertyPage. However after adding a button to open a dialog box called IDC_USERMSG which contains a single CEdit control on one of the CPropety pages an Assert is thrown when the IDC_USERMSG dialog is dismissed.
_AFXWIN_INLINE CWnd* CWnd::GetP...
Let's say i have three control A, B, C. They are all inherited from CDialog,
A is a main dialog , A contains B, and B contains C.
and each time i use mouse mouse drag C, B and C will move together.
This is a image:http://img507.imageshack.us/img507/7039/31709956.jpg
We know this will cause B and C to redraw themselves. and it might cau...
can someone give me a sample project in MFC?
Thanks in advance !
...
The application is of MFC. Sometimes I need to activate the window and display it at the topmost of the screen when it's deactivated, or hidden, or minimized. Here's what I did:
AfxGetMainWnd()->BringWindowToTop();
AfxGetMainWnd()->SetActiveWindow();
AfxGetMainWnd()->SetForegroundWindow();
if(AfxGetMainWnd()->IsIconic())
AfxGetMainWnd(...
I'm trying to build an owner-drawn check box using CButton, but since I only want to change the text color, I'd like the check-box marks to remain the same.
Is there a command that allows me to retrieve the default check box bitmaps for the platform where the program is running?
(alternatively: how could I change only the text color,...
I am working on a multithreaded program using C++ and Boost. I am using a helper thread to eagerly initialize a resource asynchronously. If I detach the thread and all references to the thread go out of scope, have I leaked any resources? Or does the thread clean-up after itself (i.e. it's stack and any other system resources needed for ...
Hello,
Is there any way to use IMPLEMENT_DYNCREATE with an template class? If not maybe someone could explain why?Or maybe there is another solution to this? :)
Example:
template<typename T>
class A : public B{
public:
A(){ printf("A constuctor "); }
void fn( ){ T* a = new T(); }
};
IMPLEMENT_DYNCREATE(A<CObject>, B);
...