I want to associate keybord commands with menu items. I have created accelarators but they don't seem to work. I have used the same ID as the Menus but it still doesn't work. I just get a beep. Do you know what could be wrong? Thanks in advance.
How do I detect Keybord input. I created a normal dialog box and put a menu on it. I want the keybord to work as equivalents for the menu items. Example: Ctrl R for File -> Run etc. Thanks in advance.
I have seen that the File Open/Save dialog in the Office applications like Excel and Word has been changed. It has a nice tool bar on the left side with buttons to folders like "My Documents" or desktop. My program still has the old style dialogs (CFileDialog). How do I get the new...
I have a Dialog based MFC Application. I want to retrieve the command line arguments on the InitInstance() function of my App Class. How do I do this if the function has no parameters? Thanks in advance.
I have used the CFileDialog class before in order to have the user specify a filename. But now I want the user to specify a directory/folder. I have seen some applications display a tree structure that allows the user to select a folder, is there another class I can use or do I have to build it...
How do I make the item in the taskbar flash when I send an error dialog that requires the user to hit O.K. Or when I need user input. Outlook does this but I can't figure out how. Thanks in advance.
I have a dialog based application that uses the CFileDlg to prompt the user for a document. But this creates the old dialog. How do I change it to the new one like excel and word use. Thanks in advance.
Does anyone know of any reference to how to use the Automations of Excel in Visual C++. I am able to get the classes from the type def file and open excell from my program but some of the functions have complex parameters. Thanks in advance.
Does anyone have any reference to how to use the Automations of Excel in Visual C++. I can access all the classes but I am not sure how to use them. Thanks in advance.
Does anyone have a clue as to how to read Excell files? I can read a tab delimited text(.txt) file that is outputed from Excell but I am not sure how I can get this same information by just reading the .xls file. Any ideas are greatly appreciated. Thanks in advance.
Is there a class or a method to change the pointer icon when the user moves the mouse over a dialog box. Example, I have a progress dialog box and I want the icon to change to a clock, to show that program is working. Any ideas. Thanks in advance
My dialog based application writes several .txt files and I am looking for a way to run notepad so the user can view those files. I read the MSDN and found:
(CWinThread::Run) virtual int Run( );
but I am not sure if this is what I need. All I want is the equivalent of the user clicking the .txt...
Every time I try to create a simple console application I have trouble compiling it. When I create a console application that prints "Hello World" with the AppWizard it doesn't compile even if I don't change a thing from the files produced by AppWizard. The error occurrs during...
I am trying to implement a linked list of objects of type SiteStructure:
struct SiteStructure
{
int numOfSect;
double easting;
double northing;
CString siteCodeStr;
CString prdPath[6];
CString prdNames[6];
double eIRP[6];
int angle[6];
SiteStructure...
I don't know if you read my previous question because it strongly relates to this one. I have dynamically created a structure of type SiteStruecture using this time malloc instead of calloc.
struct SiteStructure
{
int numOfSect;
double easting;
double northing;
CString...
I have dynamically created a structure of type SiteStruecture using calloc.
struct SiteStructure
{
int numOfSect;
double easting;
double northing;
CString siteCodeStr;
CString prdPath[6];
CString prdNames[6];
double eIRP[6];
int angle[6];
SiteStructure * nextSite;
}
when I...
I have a function that sets up a progress dialog and does time consuming conversion. The problem is that when the function is in the middle of a conversion, if the user clicks to a different application and returns, the progress dialog will not redraw itself untill the conversion has completed...
I am trying to write a function that deletes all of the contents of a directory or folder. There are commands for deleting individual files, but I would not know the file names contained in the directory. Also, I can only delete empty directories, so if there is a directory inside the given...
I wrote a simple dialog based application with some initial help from the AppWizard. The question is, how do I prevent my application from beign loaded after it has already been loaded once? In other words I only want one instance of the application to run at a time. Any suggestions? Thank you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.