|
Hi,
Thanks for the help..but I still face some problems.The first dialog box leads to the next one on pressing ok , but the next dialog box still doesnt respond to the buttons, but when I close the dialog box by clicking [x] then it goes to the next dialog box..please help me in it..
Deepak Samuel
|
|
|
|
|
Are you sure that you do not want to use a 'Wizard' style PropertySheet ?
What you describe sounds exactly like you want it.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Hi,
Thanks for your suggestion, can you help me with some example source codes..
Deepak Samuel
|
|
|
|
|
Well, at CP there is this article[^] for a beginning.
A few other articles are in the same section of cp. And try to find something in MSDN.
Good luck!
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Hi
How do I know if the control key was presed in a clistview view. I need to be able to recognise keypresses like <Cntr and Enter>
Hylton
|
|
|
|
|
u've to handle the pretranslatemessage function in the view class..... if u need help how to find a key got to MSDN.....
nice time
Adi Narayana
|
|
|
|
|
Hi
I posted the message after trying pretranslate message. The parameters did not reflect the state of the control key. An enter (VK_RETURN) and a Cntrl + return appeared exactly the same in the message. I may be misunderstanding something there. Please correct me and post sample code if you get different results. I did solve the problem by being refrered to the function
(::GetAsyncKeyState(VK_CONTROL) & 0x8000).
Thanks
tcss
|
|
|
|
|
hello ,
Is there any documentation available for paige32.dll ??Is there any source code for this dll ???
Cause is my effort;
Effect is God's effort
|
|
|
|
|
Hi,
I have a listctrl on my PropertyPage and I fill the Control with data from my database. Now I want to display the entries with a line break.
Furthermore I want to have fix columns.
Can anybody help me?
Thank you
Julia
|
|
|
|
|
I have to use a control in doc/view mode, and I want to use the Create function to create a control's instanse, not in the dialog window mode, so I use the "add to projects\components and controls" menu add the control to the project, how can I use the Create function to create the control?
|
|
|
|
|
hello
im not sure if im clear on what your asking but have your tried use
if(!m_yourcontrol.Create())
{
}
under the doc or view mode depending on wich you need.
Jason Bird
|
|
|
|
|
I have to add a activex control into the project use doc/view, and the control must hide, so I want to use it as object or class, so I have to dymanic create it, the class wizard generate a class named like CSampleControl, and the interface of the control was generated as class' member function. I use the "new" operator create a control' instanse, when I use create function to create the control, the env throw exception and dump, so how can I do?
eg.
CSampleControl* control;
control = new CSampleControl();
control->Create( "", "", WS_CHILD, this, 1000 );
|
|
|
|
|
Hi
Parameters for Create function of you control depend on by
kind of you control.
But generally first parameters its
LPCTSTR lpszWindowName is name window of you control for instance for CommandButton its same Caption
DWORD dwStyle this style of you control for more see CreateControl() function in MSDN
const RECT& rect is rect in what you control appeared
CWnd* pParentWnd is parent window (window what will belong you created control)
UINT nID is handle of you control simple defined its as any
number in "resource.h" file of you object [this number must be vary from already used for resource handling]
Sorry for bad eanglish.
|
|
|
|
|
I have to add a activex control into the project use doc/view, and the control must hide, so I want to use it as object or class, so I have to dymanic create it, the class wizard generate a class named like CSampleControl, and the interface of the control was generated as class' member function. I use the "new" operator create a control' instanse, when I use create function to create the control, the env throw exception and dump, so how can I do?
eg.
CSampleControl* control;
control = new CSampleControl();
control->Create( "", "", WS_CHILD, this, 1000 );
|
|
|
|
|
Do you create this control on class method???
If yes where placed define you control and use new operator
If for instance you declared you control in some method of you class and after used new operator and create function then after exit from this method you recieve exactly you trouble.
I.e
bool YouClass::SomeMethod(){
CSampleControl* control;
control = new CSampleControl();
control->Create( "", "", WS_CHILD, this, 1000 );
return true;//exit from method and recived exception
}
Also you may not call AfxEnableControlContainer(); on InitInstaced method of you application
|
|
|
|
|
A control is placed on a dialog or form or... inside your doc/view classes you add some classes that contain information ABOUT the control. confused yet?
for example:
on your dialog you have a edit box, in the dialog class you'll need a CEdit member to obtain information about the edit control and it's contents. You don't need to call the create method!
If you wan't to dynamically create the controls see the controlyouwant.Create() for details
hope this helps...
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
I have to add a activex control into the project use doc/view, and the control must hide, so I want to use it as object or class, so I have to dymanic create it, the class wizard generate a class named like CSampleControl, and the interface of the control was generated as class' member function. I use the "new" operator create a control' instanse, when I use create function to create the control, the env throw exception and dump, so how can I do?
eg.
CSampleControl* control;
control = new CSampleControl();
control->Create( "", "", WS_CHILD, this, 1000 );
|
|
|
|
|
Classwizard generated classes are derived from CObject and support dynamic creation! If you look inside the class you should see that the default constructor is protected ! You can't create it with the new operator. You should make it a RUNTIME_CLASS and use CreateObject to create the control. Second you should initialize it with the Create() method.
exemple:
<br />
CRuntimeClass *pClass = RUNTIME_CLASS(CSampleControl);<br />
CSampleControl *pControl = (CSampleControl*) pClass->CreateObject();<br />
pControl->Create();<br />
the runtime class contains the RTTI (RunTime Type Information).
hope this helps
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Hi there,
seems I've got a slight problem with a HTML control. I'm overriding the BeforeNavigate2 method, both for white listing sites and for disabling "_top" frame targets. The first one is working, but the latter one fails miserably...
Strangely, it never even gets the "_top" string into the "TargetFrameName" variable...
My code looks something like this:
void HtmlDlg::BeforeNavigate2(LPDISPATCH pDisp, VARIANT* URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers, BOOL* Cancel)
{
TRACE("TARGET -> %s\n\n", CString(TargetFrameName->bstrVal));
...
With a link like <a href="#" target="_top">, the TargetFrameName is completely empty, and accordingly I can't substitute something more reasonable later in the method...
Any idea why this happens?
|
|
|
|
|
Hi!
I just begin to learn programing in ATL to build a COM dll.
What i try to build is a image processing system.
There will be at least 2 class in this project. One call CImage to store the image data, another is CImageProcess will do some process on image.
So CImageProcess will take CImage as [in] or [out] parameter in the methods' parameter list.
i know the method exposed will be something like
STDMETHOD(AddNumbers)(/*[in]*/ long Num1, /*[in]*/ long Num2, /*[out]*/ long *ReturnVal);
But how do i write the method it take another COM object as input or output?
Is there any example on the web (a ATL project which involve several COM objects, and one take others as parameter)?
Thanks in advance!
|
|
|
|
|
Hi
You sould not use COM object as parameters of you interfaces(why so i dont realize yet but i many times ask similar question in diffrent forums and everywhere me suggest this).In a general sense because is not way of COM
passed parameters as COM object.
But althought you can do its simple defined methods of certain interface with parameters represented you COM object
for example:
[propget, id(0), helpstring("property GetObject")] HRESULT GetObject([out, retval] ComObject** pVal);
But prefectly use not object but interfaces of this object.
Sorry for bad eanglish
|
|
|
|
|
hello
this problem has been driving me insain cause no matter what i do nothing works
i have a CDialogBar docked to the left side of the mainfraim of a MDI application.
to the CDialogBar i Placed a CPropertySheet
and so far i only created on tab (wanted to make sure it wored before i designed everything)
and it all compiles and runs fine till i go to press one of the buttons on the PropertySheet tab then i get nothing. it acts like i never set any code up for the butten at all.
anyone have any sugestions?
Jason Bird
|
|
|
|
|
I am getting a pop-up error message which says, "NMSQL.DLL, This required file cannot be loaded, Please re-install Microsoft Visual C++" What does this mean?
Thanks
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
It means that NMSQL.DLL cannot be loaded. It's more than likely just not there any more. Please re-install Microsoft Visual C++.
#include <beer.h>
|
|
|
|
|
I re-installed VC++ and it works fine now. I don't know where the file went, but IT'S BACK!
Thanks, Dave
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|