Click here to Skip to main content
15,885,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error reading from com port Pin
John R. Shaw2-Jan-06 19:26
John R. Shaw2-Jan-06 19:26 
GeneralRe: Error reading from com port Pin
nitgonz3-Jan-06 2:55
nitgonz3-Jan-06 2:55 
GeneralRe: Error reading from com port Pin
krmed3-Jan-06 4:44
krmed3-Jan-06 4:44 
GeneralRe: Error reading from com port Pin
krmed3-Jan-06 4:43
krmed3-Jan-06 4:43 
AnswerRe: Error reading from com port Pin
rajan.msmy2-Jan-06 18:09
rajan.msmy2-Jan-06 18:09 
QuestionToolBar ToolTip is blocked by whom? Pin
rajan.msmy2-Jan-06 3:36
rajan.msmy2-Jan-06 3:36 
AnswerRe: ToolBar ToolTip is blocked by whom? Pin
Owner drawn2-Jan-06 16:45
Owner drawn2-Jan-06 16:45 
GeneralRe: ToolBar ToolTip is blocked by whom? Pin
rajan.msmy2-Jan-06 17:59
rajan.msmy2-Jan-06 17:59 
Hi Buddy,
I wanna change image of ToolButton based on some condition. More clearly, My App has TreeView item. When user selects Target Item from the TreeView Items then i, wanna change image of my ToolButton. I have drawn 2 images-One is set as default and another one is set based on TreeView Item contents.
As you told, I already added SetButtonInfo() in Frame's OnCreate().However, if user selects something from TreeView which changes ToolButton's colour and he deselects the item then i, need to show the item as default image. Hence, I did SetButtonInfo() again in OnUpdateButtonxxxx().

For Instance:
void CMainFrame::OnUpdateButtonxxxx()
{
// Check wheather TreeView Item is Selected
theApp.ToggleButton();
}
void CMyApp::ToggleButton()
{
if(UserSelctedTreeViewItem)
SetButtonInfo(TOOLBUTTON_IND, XXXX, PUSHBUTTON, GREEN);
else
SetButtonInfo(TOOLBUTTON_IND, XXXX, PUSHBUTTON, GRAY);
}

NOTE: ToolTip is blocked due to this code. That's my major problem.
Some of My Doubts are:
1.If SetButtonInfo() is called with same ID then does it stop ToolTip? if yes how?
2.I accept that due to calling SetButtonInfo() again and again in the OnUpdateButton() Handler i'm getting blinking image. But it is not happening when i change the resource ID and also i'm getting ToolTip.
3.To achieve dynamic image toggling where should we call SetButtonInfo()?

Thanks in Advance,
Rajan
GeneralRe: ToolBar ToolTip is blocked by whom? Pin
Owner drawn2-Jan-06 18:08
Owner drawn2-Jan-06 18:08 
QuestionHow to delay about 1/20 milisecond ? Pin
quangpk2-Jan-06 1:43
quangpk2-Jan-06 1:43 
AnswerRe: How to delay about 1/20 milisecond ? Pin
kakan2-Jan-06 3:18
professionalkakan2-Jan-06 3:18 
AnswerRe: How to delay about 1/20 milisecond ? Pin
babuprasath2-Jan-06 4:01
babuprasath2-Jan-06 4:01 
AnswerRe: How to delay about 1/20 milisecond ? Pin
nde_plume2-Jan-06 6:02
nde_plume2-Jan-06 6:02 
AnswerRe: How to delay about 1/20 milisecond ? Pin
Alexander M.,3-Jan-06 7:43
Alexander M.,3-Jan-06 7:43 
QuestionHow to change parents Text prperty label from child dialog box Pin
RamL2-Jan-06 0:54
RamL2-Jan-06 0:54 
AnswerRe: How to change parents Text prperty label from child dialog box Pin
Owner drawn2-Jan-06 0:57
Owner drawn2-Jan-06 0:57 
GeneralRe: How to change parents Text prperty label from child dialog box Pin
RamL2-Jan-06 1:04
RamL2-Jan-06 1:04 
GeneralRe: How to change parents Text prperty label from child dialog box Pin
Owner drawn2-Jan-06 1:07
Owner drawn2-Jan-06 1:07 
GeneralRe: How to change parents Text prperty label from child dialog box Pin
RamL2-Jan-06 1:14
RamL2-Jan-06 1:14 
GeneralRe: How to change parents Text prperty label from child dialog box Pin
Owner drawn2-Jan-06 1:28
Owner drawn2-Jan-06 1:28 
GeneralRe: How to change parents Text prperty label from child dialog box Pin
RamL2-Jan-06 1:44
RamL2-Jan-06 1:44 
AnswerRe: How to change parents Text prperty label from child dialog box Pin
Prakash Nadar2-Jan-06 3:21
Prakash Nadar2-Jan-06 3:21 
GeneralRe: How to change parents Text prperty label from child dialog box Pin
RamL2-Jan-06 19:00
RamL2-Jan-06 19:00 
QuestionHow to read value at address 0000:0408 ? Pin
quangpk1-Jan-06 23:23
quangpk1-Jan-06 23:23 
AnswerRe: How to read value at address 0000:0408 ? Pin
kakan2-Jan-06 3:04
professionalkakan2-Jan-06 3:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.