|
Hi,
Does anyone know a way of dynamically changing the header title and sub title in a 97 style wizard? These are the 2 lines of text shown in the white section at the top of each page and are normally set during construction of each CPropertyPage like so:
<br />
m_psp.dwFlags |= PSP_DEFAULT|PSP_USEHEADERSUBTITLE|PSP_USEHEADERTITLE;<br />
m_psp.pszHeaderTitle = _T("Earlier Projects."); <br />
m_psp.pszHeaderSubTitle = _T("Choose a project from the list and click next to ...."); <br />
Specifically I would like to change the HeaderSubTitle at the point the page is being activated since the action that will happen next depends on an earlier selection that the user made.
Cheers,
Jason.
Melbourne. Australia.
modified 10-Jul-19 21:02pm.
|
|
|
|
|
I am pretty sure those controls are two static controls displaying the text.
If you use SPY++ you might be able to identify the control identifiers and then just use SetDlgItemText on them to change their text dynamically, as you desire.
|
|
|
|
|
there are two hidden member variable of CpropertyPage
m_strHeaderTitle := for changing the Header
m_strHeaderSubTitle := for chaning the Sub Header.
just try them out.
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
I want to set the view area for the controls.
For e.g. consider a button. I first create a button as.
CRect rc(0,0,20,20);<br />
CButton* pButton = new CButton();<br />
pButton->Create(_T("New Button"), WS_CHILD | BS_FLAT | WS_VISIBLE, rc, m_pMainWnd, 0);<br />
pButton->BringWindowToTop();<br />
pButton->MoveWindow(rc);
The above code creates a button at (0,0,20,20) of the main window.
Now wat i want to do is set the view area for the button control. i.e. if I set the view area to (10,10,20,20) then the button's portion for (0,0,10,10) is hidden from view and only half of the button is displayed. So How to set the view area of a control.
Thanx in advance.
|
|
|
|
|
i'm developing an ActiveX controls. when user click anywhere in the control, a dialog box should appear and in dialog box there is field for controls background color.
My question is why should i use PropertyPage instead of a dialog box ?
|
|
|
|
|
Hi all,
I need to get the proxy username and password from the registry, but I don't know how!
I tried to use InternetQueryOption(NULL, INTERNET_OPTION_PROXY_PASSWORD, ...) but that returns an error that I should use a valid handle.
Is there a way to get general proxy username and password? I don't want to ask my users about this, because most people don't know this information.
I also want to know the automatic proxy configuration URL.
Thanks!
Geert
http://geert.yoki.org
|
|
|
|
|
Hello Everybody,
I have a problem and maybe one of you can hand me a beautifull solution.
I spend many hours finding out how do to that nice plug-in effect in IE (Like acrobat does), and now I want it too!
I found out I can start a MFC application, make it a full server (so I can run it stand-alone AND in an Active container(e.g. IE)), BUT i'm a totally newbie concerning MFC and I'm searching for a way to design Forms design-time just like I can do in a form application.
uhmm.... help?
Paul
|
|
|
|
|
Can some1 plz tell me how to get table name and field name from SQL in MFC VC++ using ODBC
|
|
|
|
|
It's been several years, but the last time I used Microsoft SQL Server, I spent a few hours wading through all of the stored procedures. Not only were they easy to read, they were commented. If you have access to the machine, I would suggest you do the same. I learned so much. Retrieving table names, user properties, machine statistics, etc. is just the tip of the iceberg.
Once you figure out what stored procedure) you want to use, it's very simple to call it from the client side.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
You can query the table and column names from the system tables sysobjects and syscolumns.
e.g.
<br />
select sysobjects.name as TableName, syscolumns.name as ColumnName from sysobjects<br />
inner join syscolumns on syscolumns.id=sysobjects.id<br />
where sysobjects.type='U'<br />
I Dream of Absolute Zero
|
|
|
|
|
I need to make a program to read macro code from microsoft office file,such as to read macro code from file which extention name is .doc,how can I implement this.
hiall
|
|
|
|
|
hi I am now first time visite your site.
I'd like know how can i read from doc files and how can i modfiy on it.
|
|
|
|
|
oh... if u will have an issue and finnally recognize doc file format let me know too)
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
The first thing that comes to mind is Automation. Check out MSDN article Q178749. It deals with Excel, but with only a few changes, Word can be used too. However, I do not know if macros can be read using the available interfaces.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Any body have a clue
how can i show windows standard "Open With Dialog Box"
which is shown when we double click on a file with an unknown extension.
|
|
|
|
|
|
In C++, there is no overloading across scopes ,
Please see following example
#include<iostream>
using namespace std;
class B {
public:
int f(int i) { cout << "f(int): "; return i+1; }
// ...
};
class D : public B {
public:
double f(double d) { cout << "f(double): "; return d+1.3; }
// ...
};
int main()
{
D* pd = new D;
cout << pd->f(2) << '\n';
cout << pd->f(2.3) << '\n';
}
which will produce:
f(double): 3.3
f(double): 3.6
rather than the
f(int): 3
f(double): 3.6
Why it is so?
|
|
|
|
|
to gain required result simply declare functions with the different argument types in one class...
perhaps u mixed up overloading with overriding
class D : public B {
public:
double f(double d) {
cout << "f(double): ";
return d+1.3;
}
int f(int i) {
cout << "f(int): ";
return i+1;
}
// ...
};
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
No that is not What I Expect...Please read the question carefully.
|
|
|
|
|
C++ allows specification of more than one function of the same name in the same scope. These are called “overloaded functions”.
Cheers,
Vishal
|
|
|
|
|
You may expect the f(int) method to be called, but in resolving the call I suspect the compiler 'sees' that by casting the int to a double, it can resolve to a method within the class. Have you tried either of these?
cout << pd->f((int)2) << '\n';
cout <<((B*)(pd))->f(2) << '\n';
Chris Meech
I am Canadian. [heard in a local bar]
Gently arching his fishing rod back he moves the tip forward in a gentle arch releasing the line.... kersplunk [Doug Goulden]
Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]
|
|
|
|
|
Hi All,
My question is not how to overcome the above problem. I need to know why C++ dosen't allow the overloading across the scopes?
|
|
|
|
|
vikrams wrote:
overloading across the scopes?
I need to understand what you mean by the above.
Chris Meech
I am Canadian. [heard in a local bar]
Gently arching his fishing rod back he moves the tip forward in a gentle arch releasing the line.... kersplunk [Doug Goulden]
Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]
|
|
|
|
|
Hi,
I have a project with only limited harddisk space. I have bought VS.net 2003 package, but I only want to install VC++ (without .net framework, i.e. I don't want to use VC++.net), how to do this? Thanks!
Thomas
|
|
|
|
|
how to using shockwave flash component in vc++
|
|
|
|