Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: AfxGetWinApp() Pin
ThatsAlok21-Mar-07 19:52
ThatsAlok21-Mar-07 19:52 
QuestionUser Interface style problem Pin
ilgale20-Mar-07 23:14
ilgale20-Mar-07 23:14 
AnswerRe: User Interface style problem Pin
JudyL_MD21-Mar-07 1:49
JudyL_MD21-Mar-07 1:49 
QuestionAPIs or MFC class for working with FAT ? Pin
nguyenvodich20-Mar-07 22:36
nguyenvodich20-Mar-07 22:36 
AnswerRe: APIs or MFC class for working with FAT ? Pin
kakan21-Mar-07 1:17
professionalkakan21-Mar-07 1:17 
QuestionProblem handling CStatic mouse click [modified] Pin
Futterama20-Mar-07 22:31
Futterama20-Mar-07 22:31 
AnswerRe: Problem handling CStatic mouse click Pin
prasad_som20-Mar-07 22:51
prasad_som20-Mar-07 22:51 
GeneralRe: Problem handling CStatic mouse click Pin
Futterama20-Mar-07 23:19
Futterama20-Mar-07 23:19 
prasad_som wrote:
Futterama wrote:
GetDlgItem(IDC_STATIC_TEST)->ModifyStyle(0, SS_NOTIFY);

This step is unnecessary here, as you have already mentioned SS_NOTIFY style while creating control.


This line is when I create the control with the Ressource view and toolbox in VS, not when creating the controls programatically.

prasad_som wrote:
If one of FirstID + i is equal to IDC_STATIC_TEST , handler OnStnClickedStaticTest will be called.


True, but will I then need one ON_STN_CLICKED(ID, OnStnClickedStaticTest) for each control I create? That's a lot of work and the easy part of creating the static controls programatically is kind of gone.

I was thinking more of a general handler for all the controls, that is called whenever the app receives the notification and can check to see which control the user clicked.

Is that possible, if yes, how?
AnswerRe: Problem handling CStatic mouse click Pin
prasad_som20-Mar-07 23:34
prasad_som20-Mar-07 23:34 
GeneralRe: Problem handling CStatic mouse click Pin
Futterama21-Mar-07 0:07
Futterama21-Mar-07 0:07 
QuestionGraceful Exit Upon Error Pin
softwaremonkey20-Mar-07 22:18
softwaremonkey20-Mar-07 22:18 
AnswerRe: Graceful Exit Upon Error Pin
prasad_som20-Mar-07 23:10
prasad_som20-Mar-07 23:10 
GeneralRe: Graceful Exit Upon Error Pin
softwaremonkey21-Mar-07 6:29
softwaremonkey21-Mar-07 6:29 
QuestionRendering MSI package through customized UI Pin
LiYS20-Mar-07 22:03
LiYS20-Mar-07 22:03 
QuestionAbout an error Pin
iayd20-Mar-07 21:53
iayd20-Mar-07 21:53 
AnswerRe: About an error Pin
Paresh Chitte20-Mar-07 22:02
Paresh Chitte20-Mar-07 22:02 
GeneralRe: About an error Pin
iayd20-Mar-07 22:45
iayd20-Mar-07 22:45 
AnswerRe: About an error Pin
prasad_som20-Mar-07 22:55
prasad_som20-Mar-07 22:55 
QuestionLinearSearch to BinarySearch Pin
stealwings20-Mar-07 21:41
stealwings20-Mar-07 21:41 
AnswerRe: LinearSearch to BinarySearch Pin
led mike21-Mar-07 4:41
led mike21-Mar-07 4:41 
GeneralRe: LinearSearch to BinarySearch Pin
stealwings21-Mar-07 7:42
stealwings21-Mar-07 7:42 
GeneralRe: LinearSearch to BinarySearch Pin
led mike21-Mar-07 10:18
led mike21-Mar-07 10:18 
QuestionConvert jpeg image into mpeg-1 Pin
yudhisthira20-Mar-07 21:13
yudhisthira20-Mar-07 21:13 
AnswerRe: Convert jpeg image into mpeg-1 Pin
Mark Salsbery21-Mar-07 7:32
Mark Salsbery21-Mar-07 7:32 
QuestionProblem with SendMessage. Pin
uday kiran janaswamy20-Mar-07 21:02
uday kiran janaswamy20-Mar-07 21: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.