|
You're probably delete ing a modeless CDialog without first calling its DestroyWindow() .
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi,
Thanks for the feedback. I think these are being caused from property pages of a property sheet. Does this make sence? If so how do I correctly delete pages from a sheet? Thanks!
|
|
|
|
|
Is your CPropertySheet class modeless? Or, do any of your property pages display modeless dialogs? Or both?
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi,
Thanks again for a reply. It is a complicated app. It is MDI using doc/view model. The veiw of the doc/view is split (with a splitter). One pane of the splitter is a view where I create the property sheet and the property pages. So, they are modeless as I can filp thru the pages and do work in the other panes of the split view.
Craig
|
|
|
|
|
When you close the view, make sure you call the property sheet's DestroyWindow() . This should take care of the problem.
When the view gets created, do:
m_pPropSheet = new CMyPropSheet (...);
ASSERT (m_pPropSheet != NULL);
m_pPropSheet->AddPage (...);
m_pPropSheet->AddPage (...);
m_pPropSheet->AddPage (...);
When the view gets destroyed, do:
ASSERT (pPropSheet != NULL);
m_pPropSheet->DestroyWindow();
delete m_pPropSheet;
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
hi ,
Plz suggest me a book which can teach me abt Port access programming .
sukhdeep
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp
This same article in MSDN Library contains also sample application.
|
|
|
|
|
I made an explorer bar using ATL COM. I initially made the explorer bar using the registry entries, but that doesn't meet my needs because I need to do some processing. Does anyone have advice of how I'd show an HTML page in the explorer bar? Any insight would be appreciated.
Thanks
Melinda
|
|
|
|
|
I'm replying to my own thread, heh.
I could use a HTML control and host it in the explorer bar. Then I could use IWebBrowser2::Navigate() to browse around the Internet because the HTML control has a member CComPtr<IWebBrowser2>. I read that I could use the ATL class CAxWindow<>...how do I create that as the host in the explorer bar?
Thanks.
Melinda.
|
|
|
|
|
I have an edit control which has autocomplete feature. I could activate it by calling SHAutoComplete function.
Now I would like to add an url to the history if it doesn't exist in the url history.
How can I do this ?
Orcun Colak
|
|
|
|
|
Take a look at this interesting reg key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs . You could manually iterate values to see if an item exists, adding the new URL if it doesn't; or use IUrlHistoryStg::AddUrl()[^]
|
|
|
|
|
|
Hi folks,
I need a ligth CEdit enhancement that allows me to automatically insert carriage-return/line feed when the text does not match the control width. Just before spending a day in coding it I wish to know if someone has something similar. If not I will be glad to share it w/ you if interested otherwise I'll be glad to save a day (it's getting hot in Italy);P.
Regards,
Andrea
|
|
|
|
|
If I understand you, you should just be able to check the Multiline check box in the edit controls properties.
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
No, it does not work: multiline allows the text to be displayed in more than a line, but does nothing about the placement of CR/LF chars.
This functionality is present in the static text box!
thanx
|
|
|
|
|
Uncheck the "Auto HScroll" checkbox.
Regards,
Alvaro
When birds fly in the right formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness. -- despair.com
|
|
|
|
|
Thanx a lot guy.
I really appreciated it
|
|
|
|
|
I want to make my button click do two different things : one for when the button is pressed normally and the other for when the shift key is held down and the button pressed. So what do I look for within my click handler that can branch me off into one response or another?
Appreciate your help,
ns
|
|
|
|
|
in your handler use
SHORT nShift = ::GetKeyState(VK_SHIFT);
Max.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
Thank you so much!!!!! its just what I need....
Appreciate your help,
ns
|
|
|
|
|
what about GetAsyncKeyState()? simply enter the button handler and test the shift key status. could this be a nice solution?
regards,
andrea
|
|
|
|
|
I'd prefer GetKeyState - it reflects they keyboard state of the message currently processed (i.e. it's "closer to the actual click")
Italian is a beautiful language. amare means to love, and amara bitter.
sighist | Agile Programming | doxygen
|
|
|
|
|
I am interested in caturing the packet using winpcap and then send it to the other destination after changing some attributes of packet.
I have captured the packet but unable to send it to the specific destination please if you can help me with sample code or website reference.
Reply me soon
|
|
|
|
|
Hi all!!
I have a form on wich I dynamically create an ActiveX using the Create method of it (the ActiveX is a member variable of my FormView).
What now if I want to remove tha ActiveX?? How can I do this ??? I don't know a lot about ActiveX...
Can somebody help me?
Thanks
|
|
|
|
|
Just call DestroyWindow() for the CWnd the ActiveX is associated with.
Italian is a beautiful language. amare means to love, and amara bitter.
sighist | Agile Programming | doxygen
|
|
|
|