Click here to Skip to main content
12,633,990 members (24,569 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: MFC
Hi all...

I am new to Windows CE environment.

-Consider application is running.
-I want to display text on Screen A.
-I goto Screen B and change the text.
-When i go back again on Screen A i want that updated text to be visible(on Screen A).


So where should i place my code....is it WM_ACTIVATE or WM_INITDIALOG or somewhere else.
Please suggest me the best option among the available.

Thank you.
Posted 21-Aug-12 6:05am
Updated 21-Aug-12 21:09pm
v2
Comments
Wes Aday 21-Aug-12 11:13am
   
Well that depends... what is it that you think "Screen A" is? Ditto "Screen B". What have you tried?
SidProgrammer 21-Aug-12 11:23am
   
Screen A and B both are dialog based screen.
I have tried my code in WM_INITDIALOG but placing the code here does not display the updated value. I think its because WM_INITDIALOG is triggered only when first time window is drawn.
I want to know which event redraws the screen whenever we go back on that screen(in my case whenever we go back on Screen A).

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

i got the desired output by placing my code in WM_ACTIVATE...:)
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 22 Aug 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100