I have a class derived from CDockablePane. I need to do something when the view is focused, so I handle WM_SETFOCUS and it all works nicely most of the time.
But when the pane is docked in Tabbed Document mode (TDI), and the user activates it, the WM_SETFOCUS is not called.
I used Spy and noticed the WM_MDIACTIVATE message is sent to t...
I am trying to create a full-screen control panel window with many controls: buttons, sliders, list boxes, etc.
I can create a dialog window and add controls to it, but everything is scaled in dialog units. I just want to create a window in the GUI editor that is scaled in pixels, not derived units like dialog units.
I can sort of...
Using Visual Studio 2005
As per the title; MSDN and google can't tell me, I'm hoping it'll let me know if the contained string contains Unicode characters or not - but that's a different problem!
...
Is it possible for the SetCurrentDirectory() to timeout if there is network slowdown preventing the directory from being accessed for some length of time? (In the order of 15-30 seconds...?)
If so is the timeout configurable and where can it be set?
...
I'm working in an MDI application that has a pointer to a document's frame object. Other threads are calling PostMessage using the pointer. During shutdown, the threads continue trying to post messages to the frame while the frame is being destructed. Does anyone know the destruction order of the multiple documents in MFC's MDI implement...
Is it possible to get the .NET Cursors.AppStarting using a MFC or Win32 function?
Someting similar to the CWaitCursor but indicating background processing.
...
How to go about implementing a user activity logger in MFC application.To get to know what are all the features are used most in an existing application.
...
Hi All,
I am looking for some list containing all string related issues in VC++ 6.0 which are fixed in later service packs such as this one. Can anyone please help me on this regard?
The reason for my search is this: We face some string related issues in our VC++ 6.0 based product. I am looking for other potential issues.
Thanks.
...
I'm trying to determine the window position of an application. I know SetWindowPos() would set the window position at a certain position with a specific sizing. I would like to retrieve this information, but I have noticed some negative values in there. When I save these values into the registry and then load them on the next instance, I...
In vc++ 6.0,MFC i want to select a multiple files
CFileDialog opendialog(true); // opens the dialog for open;;<br>
opendialog.m_ofn.lpstrTitle="SELECT FILE"; //selects the file title;;<br>
opendialog.m_ofn.lpstrFilter="text files (*.txt)\0*.txt\0"; //selects the filter;;<br>
if(opendialog.DoModal()==IDOK) //checks wether...
Hello
in my application I have a few CListCtrl tables. I fill/refresh them with data from an array with a for-loop. Inside the loop I have to make some adjustments on how I display the values so data binding in any way is not possible at all.
The real problem is the time it takes to fill the table since it is redrawn row by row. If I t...
I am using a named pipe for communications between two processes and want to restrict acess to any user on the local system in Windows.
I am building up and ACL for use in the SECURITY_ATTRIBUTES passed to CreateNamedPipe.
I am basing this code on that from Microsoft.
SID_IDENTIFIER_AUTHORITY siaLocal = SECURITY_LOCAL_SID_AUTHORITY;
i...
I have a dialog created from a template. It has controls listed in the template in the following order:
some irrelevant controls
a label with an accelerator (let's pretend it's Alt-A)
an edit box
OK and Cancel buttons
Normally when I hit Alt-A the keybord focus is transferred to the edit box - just as needed. However I sometimes need...
Hi all,
I have an MDI application that initially doesn't have the main window open. When you click on file and select new, it opens a new tab with the default file name on it.
My application should work like this, when you click on file and select new, a dialog box comes out asking for the name of the file you want to create. After c...
Hi,
I'm developing a Windows program in C using MFC and need to find out if a given menu (identified by a HMENU as returned by the GetMenu() function) is visible. Does anybody know how to do this?
One possibility might be to test whether there is a HWND for the HMENU (a window which displays the menu). Unfortunately I couldn't find a c...
I want to handle the properties key press in CListCtrl in MFC and show a context menu which is already shown with right clicking. How can I do that?
...
Hi all,
How do you copy a directory, subfolders and it's files? CopyFile doesn't allow wildcards, MoveFileEx works but the source directory is of course, "moved" not actually "copied"
Thanks...
...
I have been doing Windows, MFC and GUI programming for several years and need to transition to .NET. While learning WinForms, I see that WPF is the new kid on the block. Does it still make sense to learn WinForms? Also, what's the best way for someone who has been used to low level details to just put those things aside and go with thing...
I am woking in c++.
Is there any method to know whether a directory contain a sub directory?
CFileFind seems have to search through total files.
It is time consuming if the only subdirectory is at the end of the list and the there are lots of files.
for example: directory A contains 99995 files and one subdirectory at the end of FindNe...
Using the following code snippet as an illustration to my question:
// #includes and other macros
class MyClass : public CFormView
{
private:
DECLARE_DYNCREATE(MyClass)
bool privateContent;
...
public:
bool publicContent;
...
};
class MusicPlayer
{
public:
AppClass *theApp; // which has a pointer...