|
Heya
I'm not too sure about your method (i've never done it that way), when i embed controls in views i do it this way ->
Create the property sheet as per normal and add it into your FormView as a member variable.
Overide the OnSize method for your formview and call
m_myspropsheet.MoveWindow(cx,cy) etc....
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
I have mainwindow.Inside that mainwindow there are various child windows which is having WS_CHILD style as like sqldiagram.When i move one child window sliding over the other as in sql Relationship Diagram,the window which i move should have the highest z-order i.e..the window which i move should be visible when i move over another child window ,but for me it is going behind the child window.
Sorry if iam not explaining properly.
If u still cant understand my quesiton,just open the Sql Server and see the relation ship diagram and move the tables.
|
|
|
|
|
If I understand what you want to do, you want a currently dragged child-window to get the "closest-to-viewer" Z-order?
SetWindowPos and HWND_TOP is probably what you're looking for.
|
|
|
|
|
Hello,
I have a console app that I can launch using CreateProcess() however I need to obtain the input and output stream from this app so I can do some processing on the data it provides (basically, automate the process of typing data in and reading the output from the console application).
I guess there are some useful articles out there in CP? Can someone point me in the right direction please??
Much appreciated.
Adam.
www.beachwizard.com/travelogue[^]
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
|
Thanks Mike,
Appreciate it. Adam.
www.beachwizard.com/travelogue[^]
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
Read "Creating a Child Process with Redirected Input and Output" from MSDN.
|
|
|
|
|
how to set the color of the items in the listbox.
|
|
|
|
|
http://www.codeproject.com/listctrl/lvcustomdraw.asp
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
hi..
I have got handle of the parent window..now i wnat to get the handle of the textbox in the parent window..the problem is it is a java class..so i don't know how to get the handle of textbox..pls help me.
|
|
|
|
|
Had the same prob, didnt found a kick solution but to send a message to this window that the tab key was pressed till i was in the texbox
|
|
|
|
|
i didn't get u..can u make it more specific........
|
|
|
|
|
I don't know whether my VC is messing up or if my MSDN is missing some entries.
I'm trying to handle the TB_THUMBTRACK message for my slider control, ClassWizard has no entry for it and although MSDN mentions it it doesn't specify the format of the handling function??
How do i handle this Message?
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
is there any reason you want to do a thumb-track on the slider? you get the same results by just using OnHScroll:
void CSettings::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
CSliderCtrl *theThing=(CSliderCtrl*)pScrollBar;
if (theThing==(CSliderCtrl *)GetDlgItem(IDC_CONTROL_I_WANT_TO_WATCH))
{
pos = theThing->GetPos();
}
}
this will be called every time the thumb moves (just like a THUMBTRACK event on a scrollbar)
-c
As always, it's bread and circuses. And while bread is down right now, circuses are way up.
|
|
|
|
|
Thanks..
I did it the hard way .. tracking the mouse.
I'll remember that for the future though.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
I've got 4 views that are child windows of one view.
Parent view calls children's specific method to do some drawing.
And in this method different child views have different HWND, but _SAME_ HDC
so drawing occurs only in 1 child view.
any suggestions?
thanks in advance.
nobody is perfect
|
|
|
|
|
Hi,
I want to open only one set/window (doc + ChildFrame + view) on pressing menu button which replaces OnFileNew().
If the button is pressed again the window shoud be brought forward if it was unactive.
I found CDocTemplate::GetNextDoc() function which stores documents (CDocument*) created for any particular template. If GetFirstDocPosition() gives NULL no document was instantiated therefore no window displayed, so the button should create/displayed this window. Otherwise activate the already existing one. Is my understanding correct or maybe there are more elegant solutions?
siema.
Rafal
|
|
|
|
|
so you want only one document to be open in an MDI application?
if a document is open you want it to be "activated", otherwise create a new one?
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|
|
only one document of any kind.
For example have 4 buttons each for creating diffrent document.
On press any of these buttons I want document to be created if not created already or "activated" if created.
Back to my original question, is there any well known solution to that "problem"
Rafal Bober
|
|
|
|
|
Hi, how to find out, whether is ADO / mdac correctly installed with MS Access database drivers ? I'm using ADO, i need to check that so i could write some intelligent message to user.
rrrado
|
|
|
|
|
I use GetLastError in my code.It return this error for me:
Error Code:997 Overlapped I/O operation is in progress.
What does this error mean?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Are you doing Serial communications?
If so, This is ERROR_IO_PENDING and is NO ERROR!!
It just means that WaitCommEvent or ReadFile is busy reading characters but the function returns to let you do some other stuff untill its ready. Or something like that.
Search MSDN Online for "Serial Communications in Win32". This helped me a lot.
van padoea.
|
|
|
|
|
That's really hard to tell without knowing the surrounding code.
|
|
|
|
|
Hi,
I am relatively new in MDI database development (3 weeks) although seasoned C++ campaigner. Could you please advice me about advanced (the basic staff I have) textbooks regarding MDI (Multi. Doc. Inter.) development.
siema (regards)
Rafal
|
|
|
|
|
Id be interested as well.. =)
Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
|
|
|
|