|
|
Thanks a lot, it's working fine.
And thanks also for the link, I will learn that.
Stephane
www.exotk.org
|
|
|
|
|
How do I reach a combo_box added in the MainFrame from the HtmlView?
((CMainFrame*) ??? =)
Thanks in advance!
-- Kelthar :: icq9071676 :: http://uteliggare.net/southern/ --
|
|
|
|
|
AfxGetMainWnd() is one way to do it.
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
Thanks alot, but ...
... could you please give me the whole line to use it. I can't seem to get it to work. I've used something with ((CMainFrame*) etc ) before, but I've forgotten how I should use it.
I'm a n00b at this. Appriciate the help alot.
-- Kelthar :: icq9071676 :: http://uteliggare.net/southern/ --
|
|
|
|
|
CMainFrame* pMainFrame = (CMainFrame *) AfxGetMainWnd(); /ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
something like that :
CWnd* wndParent = AfxGetMainWnd( );
or
// CMainFrame is the derived class.
CMainFrame* frame = ( CMainFrame* )AfxGetMainWnd( );
max.
|
|
|
|
|
Is your combo box in your mainframe window? Methinks not. It's probably a child of a form view, no?
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
It's in the main window yes ... but everything works now! Thanks bro!
-- Kelthar :: icq9071676 :: http://uteliggare.net/southern/ --
|
|
|
|
|
Ravi Bhavnani wrote:
Is your combo box in your mainframe window? Methinks not. It's probably a child of a form view, no?
That's funny huh Ravi? A combo in the frame window!!!
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Yeah! I wonder what happens to the mainframe's ChildFrameWnd. Perhaps there's never a currently open view.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I need to make an array that holds CEdit variables. These variables represent edit boxes.
|
|
|
|
|
Use the clase CList or CArray...
Regards..
Carlos Antollini.
Sonork ID 100.10529 cantollini
I have yet to meet a C compiler that is more friendly and easier to use than eating soup with a knife.
|
|
|
|
|
CEdit *myArray[5];
or...
#include <vector>
vector <CEdit *>myArray;
it's probably nicer to use an array of pointers to CEdits than put the CEdit themselves in the array.
-c
Smaller Animals Software, Inc.
You're the icing - on the cake - on the table - at my wake. Modest Mouse
|
|
|
|
|
Hi, I implemented displaying time on status bar, but the problem is: the time will only be updated when I am moving mouse over my program. When it lost input focus, although it is still on the top of desktop, the timer info will remain as before it lost focus. It's unlike what is implemented in vc++ 6.0, when this option is selected: "Display clock on status bar".
Thank you very much in advance!
the code is as follows:
void CMainFrame::OnUpdateTimeIndicator(CCmdUI *pCmdUI)
{
CString strStatus;
char tempchar[20];
strStatus.Format(ID_INDICATOR_TIME, tempchar);
m_wndStatusBar.SetPaneText(
m_wndStatusBar.CommandToIndex(ID_INDICATOR_TIME),
strStatus
);
}
|
|
|
|
|
you have to create worker thread for it.
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
could you please give me more hint on how to do this?
Thanks!
|
|
|
|
|
You can do another thing.Use SetTimer() in your create and put the last parametr of it,name of the function you want to use to update and show time,or set it NULL and overriden WM_TIMER and in that function use the code to show time,I hope it's clear.
If you have any question about it ,don't be shy and ask it
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Maybe you can try this at the end of OnUpdateTimeIndicator(..)
m_wndStatusBar.InvalidateRect(NULL, true);
|
|
|
|
|
I don't think that helps it
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
sorry, this doesn't work.
|
|
|
|
|
As I said to you ,it needs seprate thread to update itself regullary.set timer and overriden WM_TIMER of CMaimFraim and in that function update your status bar and use that code
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Create a 1 second timer and update the status bar's time text. You should perform the update only if the old time text is different from the current time text string, otherwise the user may see some ugly flashing.
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
Got it running. Thank you all so much!
|
|
|
|
|
I am editing a piece of code adding SetOption to it with option:
INTERNET_OPTION_CLIENT_CERT_CONTEXT
Yet this assertion stops my program:
ASSERT(dwOption >= INTERNET_FIRST_OPTION &&
dwOption <= INTERNET_LAST_OPTION);
in the inet.cpp
I am using
VC++6 on a
NT 4 with
IE 5.5
Any help is appreciated.
mine_46
|
|
|
|