Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple Inheritence and MFC Pin
Tomasz Sowinski25-Jul-01 3:42
Tomasz Sowinski25-Jul-01 3:42 
GeneralRe: Multiple Inheritence and MFC Pin
Stan Shannon25-Jul-01 4:06
Stan Shannon25-Jul-01 4:06 
GeneralRe: Multiple Inheritence and MFC Pin
Fazlul Kabir24-Jul-01 11:19
Fazlul Kabir24-Jul-01 11:19 
GeneralRe: Multiple Inheritence and MFC Pin
Stan Shannon24-Jul-01 11:54
Stan Shannon24-Jul-01 11:54 
GeneralProblem with child Wnd(dialogBox) Please HELP !!!! it is very URGENT !!! Pin
24-Jul-01 10:17
suss24-Jul-01 10:17 
GeneralRe: Problem with child Wnd(dialogBox) Please HELP !!!! it is very URGENT !!! Pin
Not Active24-Jul-01 10:29
mentorNot Active24-Jul-01 10:29 
GeneralRe: Problem with child Wnd(dialogBox) Please HELP !!!! it is very URGENT !!! Pin
Jake Palmer24-Jul-01 10:36
Jake Palmer24-Jul-01 10:36 
GeneralBlinking Static Text Pin
John Uhlenbrock24-Jul-01 10:13
John Uhlenbrock24-Jul-01 10:13 
As I understand it the easiest way to get blinking static text, is to create a class who's base class is CStatic. I have overrridden the WM_TIMER message handler, and created a member function, StartBlink(). I have a boolean variable that determines whether the text is shown or not, and I try to simply use ShowWindow() to get a blinking affect. My code:
void CStaticBlink::OnTimer(UINT nIDEvent) 
{
  if(m_bVisible == TRUE)
    ShowWindow(SW_HIDE);
  else
    ShowWindow(SW_SHOW);
		
  m_bVisible = !m_bVisible;

  CStatic::OnTimer(nIDEvent);
}

void CStaticBlink::StartBlink()
{
  SetTimer(1, 500, NULL);
}


What am I missing, using the debugger, I never make it into OnTimer()
GeneralRe: Blinking Static Text Pin
Christian Graus24-Jul-01 11:31
protectorChristian Graus24-Jul-01 11:31 
GeneralRe: Blinking Static Text Pin
John Uhlenbrock24-Jul-01 12:28
John Uhlenbrock24-Jul-01 12:28 
GeneralRe: Blinking Static Text Pin
Christian Graus24-Jul-01 12:45
protectorChristian Graus24-Jul-01 12:45 
GeneralRe: Blinking Static Text Pin
John Uhlenbrock25-Jul-01 6:52
John Uhlenbrock25-Jul-01 6:52 
GeneralRe: Blinking Static Text Pin
John Uhlenbrock25-Jul-01 7:10
John Uhlenbrock25-Jul-01 7:10 
GeneralRe: Blinking Static Text Pin
25-Jul-01 9:50
suss25-Jul-01 9:50 
GeneralRe: Blinking Static Text Pin
Christian Graus25-Jul-01 12:13
protectorChristian Graus25-Jul-01 12:13 
GeneralRe: Blinking Static Text Pin
25-Jul-01 4:02
suss25-Jul-01 4:02 
GeneralDefault document icon Pin
José Luis Sogorb24-Jul-01 10:05
José Luis Sogorb24-Jul-01 10:05 
GeneralRe: Default document icon Pin
Steve Chou24-Jul-01 16:06
Steve Chou24-Jul-01 16:06 
GeneralRe: Default document icon Pin
25-Jul-01 4:05
suss25-Jul-01 4:05 
QuestionDrag & Drop - Best way? Pin
24-Jul-01 7:33
suss24-Jul-01 7:33 
QuestionCButton in toolbar not possible? Pin
Jake Palmer24-Jul-01 7:21
Jake Palmer24-Jul-01 7:21 
AnswerYes, it is possible Pin
Jake Palmer24-Jul-01 7:42
Jake Palmer24-Jul-01 7:42 
GeneralSTL list / iterator question Pin
24-Jul-01 6:57
suss24-Jul-01 6:57 
GeneralRe: STL list / iterator question Pin
Not Active24-Jul-01 7:19
mentorNot Active24-Jul-01 7:19 
GeneralRe: STL list / iterator question Pin
markkuk24-Jul-01 12:12
markkuk24-Jul-01 12:12 

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.