|
I just want to confirm this. Is it s fact that when OnInitialUpdate runs it calls OnUpdate ? I know that UpdateAllViews calls it, but wanted to make sure that the very first time the view is created, its called also. I put in a messagebox in the OnUpdate and it did trigger initially before the view came up. however I want to get absolute confirmation.
Thanks,
ns
|
|
|
|
|
|
Hmmm. I dont know. I didnt call OnUpdate explicitly from my InitialUpdate, but the msgbox I put in OnUpdate fired before the view was created. I'm doing something with char*, and if I do call it explicitly, the items in a listbox I am populating in OnUpdate get messed up. Why in the world am I getting the messgaebox in OnUpdate even though I havent called it explicitly. Incidentally, thats the place I populate my listbox(in onupdate) and it is getting populated when the view appears. ????
Thanks for answering.
ns
|
|
|
|
|
OnInitialUpdate() is called when the view is attached to the document. OnUpdate() is called when the doc is modified. You can cause OnUpdate() to be invoked by marking the document dirty (by calling SetModifiedFlag() ) or by calling UpdateAllViews() .
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
...for most of the day. Have to leave before my housekeeper shows up. I'm told I get in the way.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
If you really need to get down into the guts and see what's happening, there are several articles on CP about debugging trace statements, etc. A very simple way for trying to see the sequence of just a few functions is to put an ASSERT (false); at the beginning of those functions. Yes, there are much better ways that scale up nicely, but just to get a sense of how these few functions act in sequence, try this. When each assert fails, and you get your message box, click on ignore and let the functions proceed.
Good luck,
Dave
"You can say that again." -- Dept. of Redundancy Dept.
|
|
|
|
|
As a matter of fact I am good looking, tall, smart, and on top of all I have lots of girls.
Still I have certain problems in life. E.g. I don't know the 25 chars product key of VS .NET and without that I look pretty poor, fat, and bald.
Could somebody help me please in getting back to my old style?
Thanks
pepepp493@hotmail.com
|
|
|
|
|
In other words, you are an idiot.
Could I have your address ? Seeing as you approve of stealing, I'd like to steal your car.
Christian
come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
|
|
|
|
|
i will suggest the solution...
-----------------------------------------
just call one of ur galfriends..and take the number of hairs on her head..and tell me the exact number...and i will give you the key..!!!
-------------------------------------------------
Renjith-CPian.
|
|
|
|
|
Usually serial numbers come with products
|
|
|
|
|
in OnInitDialog()
in the end of the defenition...
return TRUE;
and here is a commment added by the wizard says...
"return TRUE unless you set the focus to a control
EXCEPTION OCX Property pages return false"
what is the matter behind that??? for why the wizard say that??
what happends when we return TRUE or FALSE ??
Anyone can Explain??
Thankx in Advance....
Renjith-CPian.
|
|
|
|
|
|
ok..but 4 y the activex controls return false??
-----------me too frm TVM
Renjith-CPian.
|
|
|
|
|
Hi,
I have two listcontrols adjacent to each other. When you click on an item in ctrl1, ctrl2 gets populated with specific items. I want the app to start up with item1 in list1 highlighted, and its options in list2 already displayed (In general the options are displayed when you click on an item in list1). ANy hints?
Appreciate it,
ns
|
|
|
|
|
assuming you have a member control m_ListCtrl1 then just do
m_ListCtrl1.SetCurSel( x );
where x is the number of the element in the list you want to select
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
It says SetCurSel is not a member of CListCtrl....
|
|
|
|
|
listCtrl.SetItemState(0, LVIS_SELECTED, LVIS_SELECTED);
Don't forget to set LVIS_SHOWSELALWAYS style.
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
Thanks. I used the first line, but did not set the style. It worked though. I put the control in from the toolbox, not programmatically. I am thinking of using something like:
// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
// Allow the header controls item to be movable by the user.
pmyListCtrl->SetExtendedStyle
(pmyListCtrl->GetExtendedStyle()|LVS_EX_HEADERDRAGDROP|LVIS_SHOWSELALWAYS)
Is this what I need to do? I wont know because it works already without the style being set.....
BTW, this selecting does not trigger the OnItemChanged function that I thought it might. IS that correct behavior?
Thanks,
ns
|
|
|
|
|
Easier way to modify the style: pmyListCtrl->ModifyStyleEx( 0, LVS_EX_SHOWSELALWAYS );
Yes, it is correct behaviour for the OnItemChanged to not trigger when changed programmatically.
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
Appreciate your response> Thanks for showing me how to set the style.
ns
|
|
|
|
|
Hi all,
I have some problems by changing the name of a DLL...
To do that : I go to => Projects | Settings | Link (Tab), and for the Category = General, I change the name of the DLL below the "Output file name:" title. But when I recompile, I find a warning which say:
"SeldesCfgProg.exp : warning LNK4070: /OUT:StdCardCom.dll directive in .EXP differs from output filename "../My DLL/SeldesCfgProg.dll"; ignoring directive"
The name before was "StdCardCom.dll" and now I will "SeldesCfgProg.dll"
With the old name, I don't have any warning...
If somebody has an idea, I would be very grateful to him.
Thanks...
Hello World!!!
from Raphaël
|
|
|
|
|
Maybe do a Clean and Rebuild. Make sure you change the name in the .def file if you use one.
Jason Henderson quasi-homepage articles "Like it or not, I'm right!"
|
|
|
|
|
Make sure you change the first line in the .DEF file from
LIBRARY "OldName"
to
LIBRARY "NewName"
Best regards,
Alexandru Savescu
|
|
|
|
|
A big Thanks for your assistance... really
Hello World!!!
from Raphaël
|
|
|
|
|
Hello,
I've created an iexplorer 'plugin' that works fine, exept that when I open a new instance of the browser, it crashes in MSHTML.DLL (addr 636ac73f). This is not a function called by me.
How can I have more info why this happens ? Is it possible to debug MSHTML.DLL ?
Thanx.
|
|
|
|