|
I guess noone knows or you don't what I'm talking about, which would give me the same answer anyway
|
|
|
|
|
By default, tabs have a gray background with black text. We would like to change the tab background to a navy blue with white text when selected and a lighter blue with black text when not selected. Is there any way to affect the tab colors?
|
|
|
|
|
How to change the color of a button?
Is that possiable. How to change the text color which is available on a button? Please any one let me know.
Thanks.
Nice talking to you.
If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
Have you considered WM_CTLCOLORBTN ?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
how to write a line to a textfile and then use it in append mode?
how to read a line from a text file?
RabiaAslam
|
|
|
|
|
There are several ways. Any particular API you are interested in?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
One simple way would be to use the fstream.h class and use
ofstream yourFile("temp.txt");
yourFile << someStringYouWantToWrite;
|
|
|
|
|
RabiaAslam wrote: how to write a line to a textfile and then use it in append mode?
Try CStdioFile class
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
Is there a tool which will check for the spellings on the UI. I am using Microsoft Foundation class MSDE - 2002 (.NET 1.0)
Thanks,
|
|
|
|
|
|
I had visual studio 6 and I could click on View/ClassWizard
to associate a control ID with a member name and type. I could
associate IDC_EDIT1 with CEdit m_edit1 and I could create a
function if the user checked a button or killfocus. How can
I access that on Visual Studio 2005? Im stumped. I clicked
on almost everything there is. I can change the name of the
control IDC_EDIT1 to IDC_ANYTHING, but I cant figure out how
to define a member variable and the type of class??
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
Right-click on the class name (e.g. CMyDialog) and choose "Add -> Variable".
|
|
|
|
|
It works and I do appreciate the response, but its really slow.
I can add one variable and then click finish. And then I click
all that again and add another variable and click finish. Do you
know if the class wizard exists for visual studio 2005? Im hoping
it does exist.
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
I sympathize! I usually end up adding them by hand. There is no snappy VS6 ClassWizard any more.
|
|
|
|
|
Nuts!
Two other quick questions.
How do you change the tab order? Sounds like a silly question, but
when I click on Tab Order from the menu, I can click on the items and
they start changing the tab order. But..... when I click on the
horizontal or vertical scroll to see the rest of the objects on the
screen and then start clicking the tab order again, the tab order
starts at 1 again. Is there another way to define the tab order?
There are more items on the screen than I can see so I have to scroll
to continue the tab order. I could do this with Visual Studio 6.
Also, if I compile an old program, which worked fine, I always get
errors surrounding:
#include <fstream.h>
If I comment it out, everything works fine. Why is that?
Please, any response you can give me will be greatly appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
To start changing tab order at a specified object press the shift key then left mouse click. Let go of the shift key and started clicking.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Is it possible to intercept the login dlg from a locked screen/computer? For a TabletPC application I'd like to change the way that a user logs back in when coming back from hibernate or a locked computer. If it's possible, even how they initially log in.
Which API functions should I be looking at?
|
|
|
|
|
This usually requires replacing msgina.dll.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
|
Sweeet! These links look much more promising than the original docs for GINA. Thanks.
|
|
|
|
|
Inherit CMyCDialog class in Class X (Class X : public CMyDialog)??. but the problem is the class X has been already inherited by the CMyDialog Call. so if do so, it'll become a cyclic inheritance. u cant do that. how to go about here?
scenario:
in Class X i have two methods
<br />
class X<br />
{<br />
SendData();<br />
ReceiveData();<br />
}<br />
In my CMyDialog, (which looks like class CMyDialod: public X )
i'd call in a button click,
<br />
void CMyDialog::OnClick()<br />
{<br />
this->SendData();<br />
}<br />
this works fine.
but when receiving , i want to display them in the CDialog. the function ReceiveData is a Thread. so in the middle of the thread, i need to update the status in the CDialog's textboxes.
in short, is it possible to access the members of the child class? or any direct access?
thanks,
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
You need to use virtual functions - a function that is defined in the base class, but implemented in the derived class, like so:
<br />
class X:<br />
{<br />
SendData();<br />
RecieveData();<br />
<br />
virtual void UpdateDialog(int message) = 0;
}<br />
<br />
X::RecieveData()<br />
{<br />
UpdateDialog();
}<br />
<br />
<br />
class CMyDialog : public X<br />
{<br />
virtual void UpdateDialog(int message);<br />
}<br />
<br />
CMyDialog::UpdateDialog(int message)<br />
{<br />
}<br />
--
Help me! I'm turning into a grapefruit!
Buzzwords!
|
|
|
|
|
i'll try this . thanks.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
You might have problem accessing the dialog window (in MFC) from another thread, so you have to use the HWND to directly access the control , or post (userdefined) message to the dialog window from the thread which will update the information.
-Prakash
|
|
|
|
|
yeaa.. this is another useful tip. thanks prakash.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|