|
You mean how to set the color of particular row?
|
|
|
|
|
hi,
The first pane in the statusbar display "Ready".How Can i change the size of the pane, based on the text it display.First i want to size the first pane dynamically based on the length of the text it display.
|
|
|
|
|
RockyJames wrote: First i want to size the first pane dynamically based on the length of the text it display.
what about CStatusBar::SetPaneInfo
"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 am working on a application which has three pane`s in the statusbar.The first pane display the text that is there in the menu item "prompt" text.I have allocated only 100 unit to first pane which display "Ready" in it.As when i select a menu item the pane size to increased or adjusted ,based on the text lenght.
|
|
|
|
|
RockyJames wrote: As when i select a menu item the pane size to increased or adjusted ,based on the text lenght.
Isn't CStatusBar:SetPaneInfo.. suit your need
"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 have Created a status bar which has three panes.The first pane width has set to 100 ,second with 230 , ans third witht the remaining.The first pane is the default pane,which show the text in prompt of menu item, For example "ready","Open a new File" etc.AS when i select the menu item`s.The width of the first pane has to changed to the lenght of the string in Menu item`s prompt text.I know about "SetPaneInfo" function.That thing is that how can retrive the menu item prompt text.
|
|
|
|
|
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
|
|
|
|