Many thanks for your answer Robert. I'm sure that will be very useful for a lot of my applications!!. But unfortunately I need that commondialog in some applications that are using the timer control instead of the API timer at the moment.
Finally I used the following steps. I created an ActiveX...
Hello to everybody!!
I have an application running to control one process. Then during the execution of that process (it can't stop!!), the user can open a CommonDialog box (Open files) and select some file. But the problem is that CommonDialog box is a modal dialog and all the process is...
At last I'm using a pointer defined in dialog class that is pointing to a document object. Then before call DoModal() function the View pass the value to the initiated dialog.
Hello!!
I have in my application one modal dialog that has to use the stored data in the Document object. Then I don't know how to get that pointer to access its data from dialog.
Please if anyone can help I will appreciate!!!
THANKS IN ADVANVE
I think you can get the node calling the following member function of the TreeView class:
CTreeCtrl::GetSelectedItem();
This function returns a handle to the current selected node
Daniel
Try with this function
Works as follows:
CString sResult=GetSecondString("hello world");
(in this case sResult="world")
//THE CODE:
CString& GetSecondString(CString& Data)
{
bool bFound=false;
CString sTempData="";
for(int i=0;i<Data.GetLenght();i++)
{...
Hello!!
I'd like to know how can I do to run a waste time subrutine doing work the current window the user is working with. I mean to run framework calculations (in an alone and independent subrutine) while the user works with the application without affect the user's window response.
Any help...
Hello!! You're right!! It's difficult to have a brief explanation about that, but I'll try...
OK, let's go thru a little program skeleton that can be useful for you...
DEVELOPING THE DLL:
(a DLL with a function called ReadConstant as example...)
1. Use Win32 Dynamic Link Library from...
Hello!!
The handle I think you need is the handle of your application window, it should be in the data member variable of CWnd class. Also is a public variable, then you can access it calling referencing dictly.
CWnd::m_hWnd. It stores the HWND you are looking for.
Try it. I Hope it can help you
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.