|
I meant to put in the angle brackets, but i forgot that CodeProject interprets them as HTML, so they got gobbled up...
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
Hi all, I am trying to develop my own win32 custom button class. I was just wondering if anyone knew where there was a good article on this as I am a little stuck on handling mouse messages. I would also like to make it a bit more generic so that it did not rely on windows messaging so I could derive a class for use with DirectX to custom draw the control in the appropriate state or use GDI for windows apps. Its more the windows messaging thats the problem, unless I use TrackMouse...() I never know when to turn o the highlight state, and have other problems if I use it with WM_SETCURSOR (I can't see if the left mouse button is down). Any help or links would be invaluable,
Many Thanks,
Alan.
P.S. I'm not interested in sub-classing MFC or win32 buttons this is my own complete implementation.
|
|
|
|
|
Folks.... this is a repeat from 'General Discussion' message board, but I will not repeat in its entirety.
I asked there (and code provided) if it is possible to access using NO MFC, a dialog box with an activeX control placed on it (DataGrid)?
I have been able to access a Dialog box (nonMFC) but once a ActiveX control was placed on it, WM_INITDIALOG never gets called.
Please look in the 'General Discussions' messageboard for more details and with code provided.
Thanks to all who responded in advance!
|
|
|
|
|
Just a straightforward question: is it possible to have a virtually unlimited number of Direct3D (8) views open in an MFC/MDI application? I guess that only one drawing surface should reside in video memory at the particular time, while these of inactive views somehow get swapped to the RAM.
If you happen to know the solution, or know someone who knows - I would greatly appreciate any help with this nasty problem.
Regards,
BB
|
|
|
|
|
After closing my app the debugger reports this warning:
Warning: calling DestroyWindow in CDialog::~CDialog --
OnDestroy or PostNcDestroy in derived class will not be called.
Any ideas what can cause this? What can I be doing wrong? What should I look for to correct this? Thanks.
|
|
|
|
|
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
|
|
|
|