In a particular VC++ 2005 MFC dialog, the "Question Mark button" (near Close button) shows up even after I set "Context Help" property to False. In other dialogs the button shows up or disappears properly after setting or resetting that property. Can somebody tell me whats wrong? or What else controls the display of that button? Thanks.
Abhijeet Pathak
Posts
-
Context sensitive help button problem -
How Much Information Is There In the World? -
Speakers that automatically go in Stand By modeSpeakers that automatically go in stand by mode when not used for some time would be a great idea and power saver as explained in the following article: Speakers that automatically go in Stand By mode[^]
-
Disk defragement resultI would recommend you to use Smart Defrag[^]. It automatically runs in the background and defragments drive. It uses low system resources and is very effective.
-
Windows Vista 32-bit vs 64-bitWindows XP 64-bit Corporate Edition is very stable and works well.
-
Republic Day wishes for all IndiansHappy Republic Day! :)
-
We're dead..Nah.. it's perfectly working... it's online..
-
Up to the minute informationThat surely is a superb movie.. with fantastic end... gives a shock..
-
MFC Architecture....!!!!???Well, there are lots of books on MFC but i'll particularly recommend http://www.codeproject.com/?cat=2[^] as it contains lots of userful articles for both biginners and advanced users/programmers...
-
Focus ProblemI've a MFC dialog with two edit boxes... By default focus in on first text box. I want that during dialog load if first edit box contains some text, then second edit box should have focus... I've tried SetFocus() in InitDialog() but it's not working... focus still remains on first control. How should I do it? Please Help!
-
Window ResizingI am developing a MFC app (Windows Explorer style). How can I control window's resizing behavior? I want to make treeview and listview invisible and when they are invisible the window size should be automatically reduced. I am trying OnSize() but it's not working...
-
Diff. between DestroyWindow() and EndDialog()ya... i'm too thinking that... because i've placed code in overridden DestroyWindow() function but it never gets called if EndDialog() method is used to close the dialog box. :(
-
Diff. between DestroyWindow() and EndDialog()i want to execute some code when a dialog is destroyed, but the code in DeatroyWindow() function doesn't executes when i use EndDialog() but executes when i use DestroyWindow(). What is the diff. between these two and which should be best to use?
-
Tooltip for disabled controlYes, definitely... If a control, or menu item is disabled but still shows Tooltips, then it gives a good idea of what that button does and saves precious time as we don't have to look into help files...
-
Visual Studio 2005 windows layoutyes, actually when i first tried my hands on VS2005, same thing happened to me and took 2 days to find out how to do it in MSDN... :)
-
Real time directory listingYes, the following article on CP shows how to use Boost libraries for directory listing: http://www.codeproject.com/useritems/find_file.asp and the following one shows how to do the same without using Boost libraries i.e. by using Win32 API functions like
FindFirstFile()
etc. http://www.codeproject.com/cpp/recursedir.asp And, I guess, the second method would be best, because it will eliminate dependencies on Boost libraries as it uses core API functions. :) -
API for UNICODEIsTextUnicode()
function can be used to check if the text is unicode... The following code might help you:int IsUnicodeFile(char* szFileName) { FILE *fpUnicode; char l_szCharBuffer[80]; //Open the file if((fpUnicode= fopen(szFileName,"r")) == NULL) return 0; //Unable to open file if(!feof(fpUnicode)) { fread(l_szCharBuffer,80,1,fpUnicode); fclose(fpUnicode); if(IsTextUnicode(l_szCharBuffer,80,NULL)) { return 2; //Text is Unicode } else { return 1; //Text is ASCII } } return 0; // Some error happened }
:) -
Visual Studio 2005 windows layoutTo change the VS2005 Window Layout, use following method: 1. On the Tools menu, choose Import and Export Settings. 2. On Welcome to the Import and Export Settings Wizard page, click Import selected environment settings and then click Next. 3. On the Save Current Settings page, select Yes, save my current settings, and then click Next. 4. In Which collection of settings do you want to import, select a settings collection from the list and then click Next. 5. In Which settings do you want to import, expand the list and select only the categories or category items you want to apply to your current settings. 6. Click Finish. 7. The Reset Complete page lists any errors associated with resetting your settings under Details. :)
-
Real time directory listingSHChangeNotifyRegister()
function can be used if you want to receive notifications when something in shell namespace is changed... (e.g. file/folder creation, deletion, rename etc..) take a look at http://www.codeproject.com/atl/shellfoldertree.asp, it may help you... http://vbnet.mvps.org/index.html?code/shell/shchangenotify.htm : this is a Visual Basic sample... it might help you... :) -
Freeing ITEMIDLIST.....Hi, I'm trying to emulate Folder Tree View like one in Windows Explorer and I'm using IShellFolder interface and EnumObjects() function to enumerate shell folders. I'm storing pointer to ITEMIDLIST for each tree node so that it can be used later for showing context menus etc. Now, whenever I browse a removable drive (USB drive) through it, i'm unable to unmount it. Is this possible because some of the ITEMIDLIST structures aren't freed up? Does that keeps the drive locked?