Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using vectors to parse text delimited files in C++ Pin
meixiang624-Feb-09 5:03
meixiang624-Feb-09 5:03 
QuestionHelp with number to string conversion Pin
TabascoSauce23-Feb-09 14:09
TabascoSauce23-Feb-09 14:09 
AnswerRe: Help with number to string conversion Pin
Stuart Dootson23-Feb-09 14:26
professionalStuart Dootson23-Feb-09 14:26 
GeneralRe: Help with number to string conversion Pin
TabascoSauce23-Feb-09 15:32
TabascoSauce23-Feb-09 15:32 
QuestionNon-Static Member Call Question Pin
Rangarajan Varadan23-Feb-09 12:51
Rangarajan Varadan23-Feb-09 12:51 
AnswerRe: Non-Static Member Call Question Pin
Stuart Dootson23-Feb-09 13:53
professionalStuart Dootson23-Feb-09 13:53 
GeneralRe: Non-Static Member Call Question Pin
David Crow23-Feb-09 16:26
David Crow23-Feb-09 16:26 
GeneralRe: Non-Static Member Call Question Pin
Rangarajan Varadan25-Feb-09 10:40
Rangarajan Varadan25-Feb-09 10:40 
Thanks for the suggestions...they got me going in the right track....

Here is the resolution/what I ahve done now to implement what I set out to do....

Scenario is I have a Tabbed application, where each of the tabs are a CPropertyPage (reference: see Venura's Simple Tab Control)

and my objective was to run a member function of a Tab when a user clicks into the Tab

In the Tab's/PP's class add the handler
CPPTwo.h
afx_msg void OnWindowPosChanged(WINDOWPOS *pwp);


CPPTwo.cpp
//... under the event handler section add the Event Handler
BEGIN_MESSAGE_MAP(CPPTwo, CPropertyPage)
.
.
ON_WM_WINDOWPOSCHANGED()
.
.
END_MESSAGE_MAP()


Then add the member function
void CPPTwo::OnWindowPosChanged(WINDOWPOS *pwp)	
{
   //wincore.cpp calls this function if you enter OR leave the tab
   //This below if condition will run only if the tab is cicked in to i.e. Enter Tab
   if ((pwp->flags & SWP_SHOWWINDOW))
   {
      //The code you want to run each time you enter the tab
   }
}

msdn reference: WM_SHOWWINDOW Notification,
http://msdn.microsoft.com/en-us/library/ms632645.aspx
In this if you look under Community Content section you'll see Use WM_WINDOWPOSCHANGED to react to window state changes
This is Raymond Chen's blog.. which is what I followed to acheive what I wanted.
here the link to the blog:
http://blogs.msdn.com/oldnewthing/archive/2008/01/15/7113860.aspx

Cheers
Ranga

-Remember Coding is fun.... coding with bugs makes it even more fun.... Poke tongue | ;-P
Questionread comma delimeted numbers and text mixture in a line [modified] Pin
mrby12323-Feb-09 12:08
mrby12323-Feb-09 12:08 
AnswerRe: read comma delimeted numbers and text mixture in a line Pin
Stuart Dootson23-Feb-09 12:40
professionalStuart Dootson23-Feb-09 12:40 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
mrby12323-Feb-09 12:47
mrby12323-Feb-09 12:47 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
Stuart Dootson23-Feb-09 13:48
professionalStuart Dootson23-Feb-09 13:48 
AnswerRe: read comma delimeted numbers and text mixture in a line Pin
David Crow23-Feb-09 16:29
David Crow23-Feb-09 16:29 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
mrby12323-Feb-09 16:47
mrby12323-Feb-09 16:47 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
David Crow24-Feb-09 2:40
David Crow24-Feb-09 2:40 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
mrby12323-Feb-09 19:05
mrby12323-Feb-09 19:05 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
David Crow24-Feb-09 2:23
David Crow24-Feb-09 2:23 
QuestionHow to fix the Linking error Pin
SIJUTHOMASP23-Feb-09 10:33
professionalSIJUTHOMASP23-Feb-09 10:33 
AnswerRe: How to fix the Linking error Pin
Stuart Dootson23-Feb-09 12:37
professionalStuart Dootson23-Feb-09 12:37 
GeneralRe: How to fix the Linking error Pin
SIJUTHOMASP23-Feb-09 23:58
professionalSIJUTHOMASP23-Feb-09 23:58 
QuestionRe: How to fix the Linking error Pin
SIJUTHOMASP24-Feb-09 8:49
professionalSIJUTHOMASP24-Feb-09 8:49 
QuestionHow to develop a DLL Pin
alizey khan23-Feb-09 7:08
alizey khan23-Feb-09 7:08 
AnswerRe: How to develop a DLL Pin
CPallini23-Feb-09 7:30
mveCPallini23-Feb-09 7:30 
AnswerRe: How to develop a DLL Pin
«_Superman_»23-Feb-09 17:30
professional«_Superman_»23-Feb-09 17:30 
QuestionNeed to compile the vc++ project in vs2008 Pin
P A N K A J23-Feb-09 5:02
P A N K A J23-Feb-09 5:02 

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.