|
To handle TTN_NEEDTEXT is not enough, from TOOLTIPTEXT I don't know how to change the tip text according to a special button in the toolbar.
|
|
|
|
|
Can we declare A Constructor as Private?
can any one explain this.;)
|
|
|
|
|
|
Sir Can any one help me in knowing which message is
fired when shut down dialog is up.
thank u.
|
|
|
|
|
shut down dialog is up -> Make it more clear..What did u mean by that..
|
|
|
|
|
jyothimythili wrote: ny one help me in knowing which message is
fired when shut down dialog is up.
WM_CREATE/WM_INITDIALOG, you have to make system wide hook to know about it....
"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
|
|
|
|
|
|
toxcct wrote: use Spy++ tool provided within Visual Studio...
Hai Tox,
you can't/difficult use the Spy++ tool when Shutdown Dialog is up... better idea would be to plant system wide hook and catch message
"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 everybody
I am working in an internet explorer tool band, and i need in the SetSite method, an instance of the IWebBrowser2 object, without using atl or MFC functions, only visual C++ functions.
If any body can tell me, how can i do that, i will be gratefull.
|
|
|
|
|
neliocc wrote: an instance of the IWebBrowser2 object, without using atl or MFC functions, only visual C++ functions.
see WM_HTML_GETOBJECT , one implementaion of that can be found here :-
http://www.codeproject.com/cpp/yahoochattext.asp[^]
"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
|
|
|
|
|
I was reading file times are stored in a different way for FAT and NTFS. So if two file dates are gotten, and one file is on a FAT system and the other on NTFS, and they are compared with CompareFileTime(), will the result be messed up? How do you make it work right? Also how do you display the date as a string that works with both file systems (in win32, no fancy libraries like mfc, wtl, .net etc.)?
- thanks
|
|
|
|
|
Is it possible to use OnCtlColor to change the color of button?
Please help!
|
|
|
|
|
No
<marquee direction="up" height="30" scrolldelay="1" step="1" scrollamount="1" hspace="0" vspace="0">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Yes..u can use..chk this code below:
HBRUSH CDlgControlsDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(nCtlColor == CTLCOLOR_EDIT)
{
pDC->SetBkColor(RGB(255,255,0));
return m_hYellowBrush;
}
if(nCtlColor == CTLCOLOR_DLG)
{
return (HBRUSH) m_RedBrush.m_hObject;
}
if(nCtlColor == CTLCOLOR_STATIC)
{
return (HBRUSH) m_SomeBrush.m_hObject;
}
return hbr;
}
|
|
|
|
|
I can use it for dialog, Static and Edit, but not button.
Can anyone give me suggestion?
Please help!
|
|
|
|
|
LaHaHa wrote: Can anyone give me suggestion
What about making it owner drawn and Overridding the DrawItem function
"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
|
|
|
|
|
Create the button is good for it or not?
Please give me more suggestion!
|
|
|
|
|
Happy VC wrote: Yes..u can use..chk this code below:
Sorry to trouble you buddy, but where are you changing color of button in above code... sorry i can't find any relevent code....
"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
|
|
|
|
|
No need to say sorry!
In fact that I need to say thank for your help!
If you have any suggestion, please tell me!
|
|
|
|
|
Hello,
I am using a box control (BUTTON) and I would like to know if there is a way of getting the position where the box line and text is drawn. I would like to use this information to place controls inside the box to make sure they don't touch the line border or text part.
Thanks
|
|
|
|
|
Hi
I have some programm and i like to extend it.
My programm has a device class to comunicate via GPIB with some external devices. Now i like to add a dll that also uses this or some methods of this class. There for i'd like to send the needed methods by function pointers to the dll.
So is this possible and if so how to manage. So far i know this will work with function pointers calling global methods but what about member functions??
THX
Timen
|
|
|
|
|
Hello everyone!
OK, I have a game here... it seems that the variables reinitialize themselves to big negative numbers or even null, either right after I initialize them or later on... for example:
<br />
this->mapFile = file;<br />
this->width = w;<br />
this->height = h;<br />
this->bytes = width*height;<br />
this->bHasBeatenMaze = false;<br />
<br />
c_red = FOREGROUND_RED|FOREGROUND_INTENSITY|BACKGROUND_INTENSITY;
If I put a breakpoint at the last line, all of the variables in this , even those that I just initialized (width, height, etc.), were set back to negative values... Do any of you have any idea of why this is happening? Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
|
"Rebuild All"? Where's that? I think I've seen it before... is "Rebuild Mazzee" or "Rebuild Solution" the same?
I tried those, but now it won't stop at the breakpoint I gave it, even though it has been on that section, since it's the class initializer for the game's main class, which the game can't run without...
There's a ghost in my computer! Help! Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
Hello.
Don't despair, there is a perfectlly logical explanation for everything.
But I can't seem to find it.
I was talking about VC 6, which I'm using.
I suggest you use both "Rebuild" commands. IMO, the most likely explanation is chaos between your object files, which can give the most interesting results...
I don't know how to rebuild the entire project in .NET, so I can't tell you how it's done.
But I'm pretty sure a total rebuild is what's needed.
kakan
|
|
|
|