I needed a edit box in the browse for folder dialog.(SHBrowseForFolder()). So I defined a Browseforfolder Callback function. I created an editbox in the BFFM_INITIALIZED message inside the callback. Then I need to get the text from the editbox when OK is pressed. But the callback is not called when the dialog exits!.. So how can get the text from the edit box...? TIA
VC Maniac
Posts
-
Customised Browse for folder dialog problem -
power point automation.missing closing curly braces for
if(Ppt.GetVersion()=="12.0")
{ -
No copy paste support in editbox [modified]I have a MFC application in which I need to create a temporary editbox on the view. But that editbox does not accept ctrl+C & ctrl+V commands from keyboard. It should support copy & paste by default. I create it with WS_CHILD | WS_VISIBLE styles. I have entered the Copy paste shortcuts into accelerator table for use in the view. Does anyone know the reason why it does not paste in editbox? Instead it pastes in the view. How to correct it? TIA.
-
Ribbon application crash on some systems while it works fine on others.Ribbon application crash on some systems while it works fine on others. I have statically linked to MFC. Still it crashes on random systems. I debugged it on the system on which it crashed and found that the FindByID returns NULL for CMFCRibbonSlider in OnUpdate.. function. Other ribbon controls are working fine.
CMFCRibbonBar* pRibbon = ((CMainFrame*) GetTopLevelFrame())->GetRibbonBar(); ASSERT_VALID(pRibbon); CMFCRibbonSlider* pSlider = DYNAMIC_DOWNCAST(CMFCRibbonSlider, pRibbon->GetCategory(0)->FindByID(ID_EDIT_EXPAND_COLLAPSE));
Why does it return NULL only on some systems ? What might be the problem? Thanks in Advanc -
Will 32 bit app run on 64 bit OSUnfortunately my application crashes on 64 bit OS. Guess I'll have to debug on a 64 bit to find the problem. Anyways thanks for the replies.
-
Will 32 bit app run on 64 bit OSPlease tell me what I have to do to make sure that the app runs fine on 64bit OS.. Thanks for reply
-
Will 32 bit app run on 64 bit OSI have a MFC Ribbon application that I developed on 32bit system. I have statically linked to MFC. My question is whether this application will run fine on 64bit XP/Vista?
-
Is it compusory to call CPrintInfo::SetMaxPage before starting print????Thanks superman.. I always use documentation. but in this case I totally forgot it. :)
-
Is it compusory to call CPrintInfo::SetMaxPage before starting print????I cannot calculate the exact number of pages to be printed in advance, so I do not call SetMaxPage in OnBeginPrinting(). In this case only 1 page is printed. I tried setting it to maximum(0xFFFF), but still it prints only 1 page. The data(sample) to be printed is clearly more than 5 pages. How do I continue with this? Is setting max page mandatory for printing more than 1 page? Thanks in Advance..
-
converting TCHAR to CString giving some garbage valueEither use _tcscpy() for initializing
prdcode
or put the string directly to the CString object. -
Blinking cursor on the view.Hi All, I need to display a blinking cursor on the view but without using any control. How to do it? Thanks
-
Ribbon app crash on XP. Works on vista. [modified]I solved the problem. There was a resource leak in my code, but it was crashing in MS VC++ code. I was getting the handle to dc(GetDC()) in some UI update event(ON_UPDATE_COMMAND_UI), but I was not releasing it.
-
program crashing....Why cant you run it in debug?
-
Ribbon app crash on XP. Works on vista. [modified]I have developed a Ribbon application on Vista using VS 2008. It works fine on Vista. I statically link MFC so that I can run it on XP too. But when I run it on XP, it puts up a dialog box saying "A required resource was unavailble". Later if I press OK on this dialog, it puts up another one saying "Encountered an improper argument". Many such("Encountered an....") dialogs follow(one after another) until I terminate it from the task manager. Interesting thing I noticed is that this scenario occurs when I just place the mouse pointer over the Ribbon bar. I do nothing else. Then I open the Task manager and see that the memory used is increasing by 8 Kbytes with every second. Eventually followed by the above scenario. Wt ???????
modified on Thursday, February 5, 2009 8:51 AM
-
static Picture control not loading a bmpBut I added a new dialog, placed a picture control on it and loaded a bmp. It works fine in unicode also. I think it should not be specific to property sheets. what do you say ?
-
static Picture control not loading a bmpThats the thing Im doing now.. I'll let you know..
-
static Picture control not loading a bmpThere is no code actually. Its all done in design time.
-
static Picture control not loading a bmpI am using MFC picture control for displaying bmps on property dialog boxes. So I added picture contrl from the tools and changed the type to bitmap. Then selected a bmp resource to be loaded into the control. At design time the bmp is visible but at run time its not. I have done this before but the project used a MBCS. Now its Unicode. Does that matter? If not what might be the problem? TIA
-
str lengthhey guys I fixed it. It wasn't a 0 problem.
-
str lengthhow to get the full length of the string that contains 0's inbetween. I tried _tcslen() on the LPCTSTR, but it gives the string len till the first occurrence of a 0. TIA