|
Im sorry but i dont understand what do you need, you have a function MyTextOut that it has TextOut then?
|
|
|
|
|
thanks all the same.
intercept API can help us do more useful things.
get words from windows screen just only a little section...
|
|
|
|
|
Is this a joke?
If you could easily just intercept TextOut and replace it with your own then this computer fad
wouldn't have lasted a week!
I have to ask... WHY?
Just scan the pixels on the screen, use OCR algorithm to get the text, and change it.
That will work.
Mark
|
|
|
|
|
I've not tried it, but see here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
can any one tell me where the standard include directory path will be there in VC++ IDE using VS2005....
Regards,
Mpk1979
mpk1979
|
|
|
|
|
The Include path can be check or set in Tools->Options , Projects and Solutions->VC++ Directories
|
|
|
|
|
Hi, I am developing a SDI application. It contains 2 tabs. 1st tab is again contains 3 panes, which needs to be created using splitter windows. That splitter window is divided into 2 rows.
So my query is how to create a splitter window in a CTabCtrl?
|
|
|
|
|
Use the splitter as you always would. The only difference is the parent window is one of the tab
windows.
Mark
|
|
|
|
|
Can i get an example from anywhere for reference?
|
|
|
|
|
Try the VIEWEX example (MFC)
Have you looked at the CSplitterWnd class?
You have to deal with all the tab window stuff plus creating a splitter window and its 3 panes as
well. It's a lot of example code to type here
Mark
|
|
|
|
|
Will you plz guide me? What i have thought is, i will create a simple class derived from CView and use it in sdi template. Then in that CView class, i will use a member which is of type CMyTabCtrl class.
Then plz tell me where and how should i create splitter windows in that CMyTabCtrl? What i thought is, i ll create splitter in Create method of CMyTabCtrl()? is it correct way? Plz guide me.
|
|
|
|
|
hi hellow every one,
i too want help on this topic. because when you see the VC++ Editor it is a Tabbed Splitter Window. I cant see any example for getting such type. please help me out so that i can learnt it.
Uday kiran
|
|
|
|
|
You're on the right track.
I personally use a CTabCtrl as just a control and handle everything in the control's parent (like
you would a simple control like a button in a dialog.
The parent window class (CView-derived in your case) contains:
1) a CTabCtrl object
2) an array of CWnd pointers for each tab's window.
The parent window (I'll call it CTabCtrlParent handles window resizing and tab control
notifications.
In CTabCtrlParent OnCreate() I create the tab control, create each window for each tab, placing
the (window pointers in the array for easy indexing later) and using CTabCtrl::InsertItem() to
add a tab using the same index as the window pointer array index.
In CTabCtrlParent OnNotify() I handle TCN_SELCHANGE, TCN_SELCHANGING notifications from the tab
control. For TCN_SELCHANGE I hide the current tab window, show the new tab window (using
MoveWindow() or something to size it in the tab control.
In CTabCtrlParent::OnSize() I resize the tab control to fit the client area and resize the current
tab window to fit the tab control's "client" area. This is the most complicated part so here's
an example:
if (pTabControl && (pTabControl->m_hWnd != 0))
{
CRect CliRect;
pTabControl->GetWindowRect(&CliRect);
::MapWindowPoints(0, *pTabControl, (LPPOINT)&CliRect, 2);
CRect TabClientRect = CliRect;
pTabControl->AdjustRect(false, &TabClientRect);
::MapWindowPoints(*pTabControl, *this, (LPPOINT)&TabClientRect, 2);
int i = pTabControl->GetCurSel();
if (i >= 0 && TabWindowPointerArray[i] && TabWindowPointerArray[i]->m_hWnd)
{
HDWP hDwp;
if ((hDwp = ::BeginDeferWindowPos(2)) != 0)
{
hDwp = ::DeferWindowPos(hDwp,*pTabControl,0,0,0,
CliRect.Width(),CliRect.Height(),
SWP_NOMOVE | SWP_NOZORDER);
hDwp = ::DeferWindowPos(hDwp,*TabWindowPointerArray[i], HWND_TOP,
TabClientRect.left,TabClientRect.top,
TabClientRect.Width(),TabClientRect.Height(), 0);
::EndDeferWindowPos(hDwp);
}
}
}
This takes care of your tab controll stuff. In the tab windows is where you'll have a splitter
and more windows, one for each splitter pane. Now you see why it's a lot of code to show here as
an example
|
|
|
|
|
Hi...
can anyone help me with this problem???
I need to create a CPtrArray called Array1. From a dialog i need to take the values and store it in this Array1. After that I need to display the values in the Array1 back in the dialog.
SO can any one suggest a solution for this.
also am new to MFCs and am stuck here without any solution..
Please do it as soon as possible....
Thanks.. waiting for ur reply... plz plz plz help me......
bye
|
|
|
|
|
CPtrArray MyPointerArray;
...
MyPointerArray.Add(somepointer);
...
for (int i = 0; i < MyPointerArray.GetSize(); ++i)
{
add MyPointerArray[i] to dialog
}
Mark
|
|
|
|
|
Nice solution indeed
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
See here[^] maybe its some helpful for you
|
|
|
|
|
Hi...
can anyone help me with this problem???
I need to create a CPtrArray called Array1. From a dialog i need to take the values and store it in this Array1. After that I need to display the values in the Array1 back in the dialog.
SO can any one suggest a solution for this.
Please do it as soon as possible....
Thanks.. waiting for ur reply...
bye
|
|
|
|
|
It would help a lot if you describe where you are stuck exactly. And also post some code if necessary.
|
|
|
|
|
When you submit a problem on any forum, please choose the subject that gives a brief introduction of your problem. The subject of your problem could be "Problem in storing values in CPtrArray" or "How to store values in CPtrArray" or so.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
I'm guessing the title would be "Problem that I haven't done my homework yet that's due in today"
|
|
|
|
|
SaptaSri wrote: Please do it as soon as possible....
|
|
|
|
|
hi
i want execue another exe in my application with CreateProcess functin.
but i dont have path of exe.
how i can call createprocess function without set path of exe.
please describe me about first and second parameters of createprocess.
|
|
|
|
|
Is this[^] helpful for you
|
|
|
|
|
WhiteSky wrote: Is this[^] helpful for you
I doubt it. Whether the OP chooses CreateProcess() , ShellExecute() , or some other mechanism, what's missing is the necessary path information. If no path is specified, Windows will help you out a little by searching: the folder in which the application was loaded from, the current folder, the Windows folder, and those folders listed in the PATH environment variable.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|