Does anybody know how to read the actual position of desktop shortcuts and move them to a desired position. many thanks in advance...
MS
Does anybody know how to read the actual position of desktop shortcuts and move them to a desired position. many thanks in advance...
MS
Just for the curious: I found an article which gives an explanation: http://blogs.msdn.com/oldnewthing/archive/2003/10/01/55108.aspx[^]
MS
Iain Clarke wrote:
I expect either windows shoves one at you every now and then, or the mouse driver may be more sensitive than needed.
That was my first thought too. But when the mouse rests moveless over the dialog client area beside a DlgItem, no WM_MOUSEMOVE messages occur.
Iain Clarke wrote:
And do you care? You should be able to cope with the user moving the mouse anyway.
Since the coordinates don' t change, I can easily filter the wrong messages by comparing the actual coordinates with the last, so it is no problem. But I would be keen to know the reason.
MS
Hello everybody, having a DlgItem, for example a a CEdit oder or a CStatic, on a CDialog the CDialog periodically receives WM_MOUSEMOVE messages when the mouse is over the DlgItem without any movement. The coordinates, as expected, don't change. Does anybody have an explanation for this behaviour? Thanks in advance
MS
How about setting the width of that column to zero?
MS
There are functions for appropriate conversion, for example itoa, ltoa. Or, if you are using CString: long var =12345; CString strVar; strVar.Format( "%d", var );
MS
It works! I didn't respect that the windows explorer hides the file extension .lnk even if you haven't checked the "hide file extensions" property. So I simply passed the incomplete filename to SetFileAttributes. Anyway, thank you for responding.
MS
Does anybody know by chance how to change the file attributes of a shortcut in a folder? CFile::Get/SetStatus and GetFileAttributes/SetFileAttributes don't work. Thanks in advance
MS
Thanks, thats seems to be the solution.
MS
The icons on the windows system menu are made from the true type font Marlett. Does anybody know how I can use these icons? Are they created from the font at runtime (how?), or are they allocated as icons in a ressource (which?).
MS
Hello cpallini, thanks a lot, that seems to work. The disabled close button does not affect my purpose.
MS
Hello everybody, i want to avoid the menu which pops up with a right click on the taskbar button of an application but I find no way to trap this event. Does anybody have a solution for this problem?
MS
By means of "subclassing" the CEdit you can overwrite it's message handlers. This way you can sort out the characters you want to block. Search for "Subclassing" or "SubclassDlgItem" here in the forum. There are good articles about the subject.
MS
You need to call to call the member funktion SetEventMask to specify which notification messages the CRichEditCtrl object sends to its parent window. For example, to get notified about mouse and keyboard events: CRichEditCtrl m_rich; m_rich.SetEventMask(ENM_MOUSEEVENTS|ENM_KEYEVENTS); Hope this helps.
MS
Hello everybody, I need to access some functions in a VB.NET dll from my VC++ application. The problem is that the dll doesn't export any functions like a common dll does. On a microsoft website I found a hint that looks like the .NET dll needs to implement a COM interface to fit my purposes, but I'm not shure. Does anybody have more knowledge on this issue??? MS
I think you problem is that you are using ACCESS 2000 or newer (that means Jet Engine 4.x). Then you need to trigger the use of DAO 3.6 instead of DAO 3.5 which is the default of the MFC DAO classes in VS6. If you use MFC in a shared DLL, you can easily resolve this problem by putting the line: AfxGetModuleState()->m_dwVersion = 0x0601; into your code before you call AfxDaoInit(). Hope this helps MS
Oh such a shit. I had some old code in the views PreCreateWindow function which fails at the current version of the project. And so the creation of the view fails. MS
In my SDI Application the following problem appeared all of a sudden: In the InitInstance function of the application class the following line // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) return FALSE; causes the error: Error creating empty document ! (Translation from german, so the english errortext may be slightly different) Tracing into the MFC code the error happens in the function CWinApp::ProcessShellCommand at the following statement: if (!AfxGetApp()->OnCmdMsg(ID_FILE_NEW, 0, NULL, NULL)) Does anybody else have had this problem and found a solution ??? MS
With Access2000 or later you need Dao 3.6 and Jet Engine 4.0 on your PC. In your application you need to make the following call prior to calling AfxDaoInit(): //This call makes MFC take use of DAO3.6 AfxGetModuleState()->m_dwVersion = 0x0601; //Now you can call AfxDaoInit() AfxDaoInit(); It only works if you have MFC as shared dll. If you have linked MFC statically you need to change some code in CDaoDatabase. It is described anywhere in MSDN. Hope this helps. MS
You can use a CListCtrl. Apply the "ReportView" and "NoColumnHeader" Styles and Gridlines as ExStyle. MS