|
I is what I am thinking.
Any existing code or formula to get related params for >=3 (4 or more is prefered) points?
|
|
|
|
|
Here you can fine some interesting formula
http://www.codeproject.com/useritems/SplineInterpolation.asp
Cheers,
Russell
|
|
|
|
|
|
A modelless dialog with child property is created on a main dialog,just like notepad with find dialog been opened,except the modeless dialog has a List Control.
now do it like this:
set focus(click the left mouse button) to the List Control(if the List Control's tab order is not 1) firstly,secondly, minimize the main dialog, then restore it.
now you will find the problem: the List Control remains not refreshing!
|
|
|
|
|
eat_union wrote: the List Control remains not refreshing!
What does this mean ?
|
|
|
|
|
the List Control remains not refreshing
means that the List Control does not be displayed.
I'm a chinese.
I'm so sorry to my poor english.
|
|
|
|
|
eat_union wrote: the List Control remains not refreshing
means that the List Control does not be displayed.
How you are creating list box ? One place its creation could be in in WM_INITDIALOG handler.
eat_union wrote: I'm so sorry to my poor english.
Never mind. You can count me one with you.
|
|
|
|
|
You need to show , how you have created list box ?
|
|
|
|
|
|
Oh ! I'm not able to reproduce said behaviour. May be you can try it with other application. And see the difference.
|
|
|
|
|
thanks for your help!
I do the same operation in another simple project, and the problem cant not be reproduced too,
I will try to find my fault.
thanks.
|
|
|
|
|
That's cool. All the best. Do post, when you find ,what you was doing wrong.
|
|
|
|
|
Yes it can be refreshed correctly.
Probably you mean redraw, not refresh. Anyway, it's the programmer's job to handle WM_ACTIVATE, WM_SETFOCUS etc.
Could be a SetRedraw with FALSE without a SetRedraw with TRUE?
|
|
|
|
|
yes, i mean that the List Control disappeared.
when the main dialog being restored, i add some code:
<br />
CDialog::OnSysCommand(nID, lParam);<br />
if (SC_RESTORE == (nID & 0xFFF0) && hRefresh)
::RedrawWindow(hRefresh, 0, 0, RDW_FRAME | RDW_INVALIDATE);<br />
now, program is solved, but i want to know why.
|
|
|
|
|
Check with spy++ the list size and visibility while the main dialog is minimized.
|
|
|
|
|
If you use of RedrawWindow what happens
|
|
|
|
|
It's a MFC bug, I think.
first, I should say "List Control remains not refreshing" means "List Control disappeared".
I'm sorry to my poor english!
In order to produce the problem, the main dialog must has a tab control(Last time, I forgot to explain), and the modelless dialog must covers total or part of the tab control.
I can solve the problem(use RedrawWindow to force the List Control Repaint when main dialog be restored),but I want to know why.
will you please have a try, and I'm sure you'll get the problem.
|
|
|
|
|
This is not an MFC bug. Listbox controls have nothing to do with MFC.
|
|
|
|
|
hello all:
i want to use the 'avi/wav file source filter' in my filtergraph,but the method AddSourceFilter(...) by graphbuilder add the filter 'file source filter' in the filterchain,how can i change that,and to configure the filepath for my 'avi/wav file source filter'.
sorry for my poor english
thanks in advance
henry
|
|
|
|
|
What part is giving you trouble?
File Source (Async) Filter
CLSID = CLSID_AsyncReader
Category = CLSID_LegacyAmFilterCategory
File Source (URL) Filter
CLSID = CLSID_URLReader
Category = CLSID_LegacyAmFilterCategory
If you've added the file source filter then use its IFileSourceFilter interface's Load() method
to get the filter to load the file.
|
|
|
|
|
hi this is ramesh .
i am writing a small win32 appl..i am using hierarchical stucture of check boxes in it(Tree view)
the functionality i badly needed is if i select a root item the child checkboxes should also get selected. could u help me to solve this problem??
if u have any example applications could u send me??
my mail id is sramesh21@gmail.com .
thanks in advance.
regards,
ramesh s
ramesh s
|
|
|
|
|
ramesh_s21 wrote: how to select the all the child checkboxes when a root is selected/clicked
You would be getting an event on the click of the root item.
Then get the children of the root and set them as checked using SetCheck...
I do think that you would be able to iterate through the child check boxes when the user clicks on the root.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
1. Implement notifications (NM_CLICK, TVN_KEYDOWN) to be notified when the user changes a root node checkbox state.
2. Implement and manage the LPARAM of inserted TVITEMs in tree to can retrieve HTREEITEM from LPARAM.
3. Use TreeView_SortChildrenCB macro, called when you need to also check all child items; the compare function will return 0 and will just modify the item state. Callback sort function will receive the lParam1 and lParam2 and will locate the HTREEITEMs from these (see 2). Finally, you set the nodes' checked state for both.
|
|
|
|
|
thanks cristian amarie.
could u plz get me sample code for tree view control with check boxes,if u have any?
thanks in advance.
regards,
ramesh s
ramesh s
|
|
|
|
|
I don't have one now, but for sure there are a number in MSDN samples and Platform SDK (try the older ones if you can spot some copies - the newer MSDN/PSDK seems to be more .NET oriented than API oriented).
CP also may have tree view samples as well.
I remember a sample containing almost all common controls, showing messages, notifications etc. - I don't remember the name now, was something with the solar system's planets in a listview. Check in MSDN, it won't be too hard to locate it and contains almost all you need to know. And more.
|
|
|
|