|
I've found a .tlb file but it has not the same name of the ocx control.
Do you think that this can be a problem?
Can I import a TLB file?
Thank you in advance!
|
|
|
|
|
Joan Murt wrote: I've found a .tlb file but it has not the same name of the ocx control.
Open it with OLE/VIEW and have a look.
See if it could be the typelib for the ActiveX control.
What does it say? What's the name of it?
Is the ActiveX control part of a larger package?
Joan Murt wrote: Can I import a TLB file?
Absolutely.
But you'd better select the right one.
If you f.ex. choose to run office application through automation, you #import .tlb and .olb files.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I have a program that graphs data from a device on the fly. To update the graph every second I call the InvalidateRect function. When the program runs for a while (e.g 1 hour) it's fine, but when I run it over night and come back in the morning to check it, the whole computer monitor is white. I then minimize my program (when I scroll over the buttons on the taskbar they start to appear) and everything is back to normal. It seems the InvalidateRect function messes up my refresh rate or it some how invalidates the whole screen even though i specified a small rect on the window. Anyone know how I can solve this?
------------------------
Impossible is Nothing
|
|
|
|
|
Do you have a screen saver? ( even a screen blank) It can cause some refresh problem also.
Are you certain you do not have resource leaks or memory leaks ?
|
|
|
|
|
This may be a tall order.
Looking for a VC++ 6.0 MFC IDE template.
Something similar to Altium DXP.
I guess a combination of split view - with tree control in left pane ( inside tab control would be nice) and a tab control in right pane.
There are plenty of piece parts in CodeProject, but I have not seen a complete IDE application here.
Thanks for reading.
Vaclav
|
|
|
|
|
Use AppWizard to create your basic SDI application. In the CFrameWnd -derived class, add a CSplitterWnd member. In the frame's OnCreateClient() method, do something like:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
m_wndSplitter.CreateStatic(this, 1, 2);
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeftPaneView), CSize(70, 0), pContext);
m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRightPaneView), CSize(0, 0), pContext);
return CFrameWnd::OnCreateClient(lpcs, pContext);
} You'll then need to use ClassWizard to create two views, one for the left pane and one for the right pane.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi all
hi all
how can i change the CMenu Font..
Thanks in advance
Vishal
|
|
|
|
|
|
Do you want to change font of a foreign application?
|
|
|
|
|
|
hi all
how can i change the CMenu Font.. ... i want to change the font of File , Edit .. etc .. and their submenuitems
Thanks in advance
Vishal
|
|
|
|
|
In a simple way, you cannot do it with CMenu as you'd do with CWnds. Instead, you should have custom drawn menu to define the way it is painting its items.
--
======
Arman
|
|
|
|
|
Hi
Vishal
u have to use LOGFONT and use typeface property of this.write this code in OnDraw() function.Ok....In which company ur working now.
Regards
At
at
|
|
|
|
|
Hi Atul
Thanks for the mail
Is it possible that u can elobrate ur hint a bit more with a code sample ???
Regards
Vishal
|
|
|
|
|
Hello,
can someone show me how to use this function?
I recive only errors
regards
termal
|
|
|
|
|
termal wrote: I recive only errors
Are we supposed to guess what those are?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
i try to use
BOOL CDemoDlg::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
function and i dont know how to do this!
I recive an error in line with message map:
ON_NOTIFY(WM_NOTIFY, IDC_LIST, OnNotify)
Error is:
error C2440: 'type cast' : cannot convert from 'int (__thiscall CTabAll::*)(unsigned int,long,long *)' to 'void (__thiscall CCmdTarget::*)(struct tagNMHDR *,long *)'
Pointers to members have different representations; cannot cast between them
ok, i see i have different parameters, but how to do right!
thanks
termal
|
|
|
|
|
Are you using VS6 or VS200x?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello David,
i use VS6.
regards
temal
|
|
|
|
|
Read the error message. The compiler is expecting the parameter list to be (NMHDR*, LRESULT*) but your function has (WPARAM, LPARAM, LRESULT*) (mentally substitute LRESULT for long , it's a typedef )
|
|
|
|
|
Michael Dunn wrote: The compiler is expecting the parameter list to be (NMHDR*, LRESULT*)...
Why is that, Mike? I'm looking through all of my examples, and it's a three-argument method.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
See here: clickety[^] - see the section "ON_NOTIFY: Handling WM_NOTIFY Messages in MFC Applications"
|
|
|
|
|
I guess it changed in MFC 8. It's
BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
on MFC 7.1 (VS2003) as well.
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
That's what struck me as odd. This VS2005 page shows it to take three arguments.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yep - CWnd::OnNotify[^]
I wonder which is true? I only have VS2005 Express so I can't test it
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|