|
I'm not too familiar with the DOC/View archetecture, but you can handle multiple files within a std::vector, and control how many views you want. I keep track of multiple files using:
std::vector<CDataFile>m_vFiles
Good luck.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Hi,
I'm changing my MainFrame's Title when I open a new view.But when I close this view Title is setting back to previous like when my application was opened for the first time.can anybody give me the suggetion to change the Title which does not changes even any view is opened or closed.this is very urgent.
thanks in advace
rgds
Thomas
ThomasKennedyBose
|
|
|
|
|
As far as I know you can't set a title for the whole runtime. But you could try to handle WM_SETTEXT and there don't let it set your caption. If this doesn't work you should set your title even when a window get's closed.
|
|
|
|
|
Ya.............u r right......v have to set the caption even the new window gets closed.Thanks a lot.
ThomasKennedyBose
|
|
|
|
|
Will YourMainframe.SetWindowText("Test") not work?
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Perhaps you read over it, but he mentioned that the title of his mainframe is set back after closing a view. Thus his problem should not be a problem of SetWindowText.
|
|
|
|
|
it will work but it won't remain even when the window gets closed
ThomasKennedyBose
|
|
|
|
|
What about setting the document title by GetDocument ()->SetTitle). Also, try changing the application title in the string table
|
|
|
|
|
it will work but it won't remain even when the window gets closed
ThomasKennedyBose
|
|
|
|
|
If you mean you don't want to have the current document's filename in the title, then in CMainFrame::PreCreateWindow() , turn off the FWS_ADDTOTITLE style.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
How do i change the typical MFC icon in my MFC application (I want to use a .ico I have)
Thanks
-- n
|
|
|
|
|
Go to your res directory and replace the icon named like your project by the icon you like to use.
|
|
|
|
|
It doesn't work. I still get the funny MFC icon next to my exe in the folder. I don't only mean the icon thta you see when you run the program, but the icon you see next to the exe file. Any ideas?
thanks
-- na
|
|
|
|
|
Sorry, it works perfectly
thanks so much!
-- na
|
|
|
|
|
Sorry, it works perfectly
thanks so much!
-- na
|
|
|
|
|
To quote MSDN: "Windows 95 and Windows 98: The wParam parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 items. Although the number of items is restricted, the total size in bytes of the items in a list box is limited only by available memory."
Does this mean in Windows NT that the wParam parameter can be up to 2,147,483,647 items in the list box? Just out of curiousity, what would be a workaround to add more items to the list box if one was targeting Windows 98 platforms?
|
|
|
|
|
:-OSomebody answered this question previously..i don't remember at this time, but when you want mor items than the maximum size of the list box then you need to define something and allocate the size..just like that something..
cheers,
Himanshu
|
|
|
|
|
for NT kernels, the number of items is (IIRC) limited by available memory.
The way around would be a virtual list view control in report mode.
Those who not hear the music think the dancers are mad. [sighist] [Agile Programming]
|
|
|
|
|
georgiek50 wrote:
what would be a workaround to add more items to the list box if one was targeting Windows 98 platforms?
The only workaround is to not use a listbox. The guts of 9x (such as USER) still has 16-bit code, and is subject to 16-bit limitations - 32767 is the max value of a 16-bit signed int, for instance.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Off topic but great program (1ClickPicGrabber) just found it the other day. Thanks for the info.
|
|
|
|
|
How to disable the Delete key in my MFC application?
|
|
|
|
|
Depends on which scope it should have. If you need to disable the key only in your application, you could handle the WM_KEYDOWN message, there handling the keycode VK_DELETE.
If you'd like to disable the key for all applications, you should set a hook (SetWindowsHoolEx) of type WH_KEYBOARD.
|
|
|
|
|
Hi, does anyone knows how to programmatically delete the Find History ie the list of files that come up when you click on Start>Search>For Files or Folder>Search for files or folders named
Thanks in advance.
|
|
|
|
|
Apparently the history is written to HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru\5603 and/or
HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru\5604 registry keys on my Windows XP machine. Wiping out the data in the sub-keys should do the trick.
Though, I'm not really sure if this is true for all configurations
|
|
|
|
|
Thanks Joshua.
I believe for Windows 98 the setting should be HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc
Find Spec MRU
I have observed for Windows 2000, the key is located at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Explorer\Explorer Bars\FilesNamedMRU
Is this correct?
Thanks in advance again
Effiniti->
|
|
|
|