Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to control a threads CPU utilization? Pin
mediamaster4025-Nov-02 3:11
mediamaster4025-Nov-02 3:11 
GeneralCListCtrl - Selection Problem Pin
#realJSOP23-Nov-02 0:54
professional#realJSOP23-Nov-02 0:54 
GeneralRe: CListCtrl - Selection Problem Pin
Gary R. Wheeler23-Nov-02 1:50
Gary R. Wheeler23-Nov-02 1:50 
GeneralRe: CListCtrl - Selection Problem Pin
#realJSOP23-Nov-02 3:22
professional#realJSOP23-Nov-02 3:22 
GeneralRe: CListCtrl - Selection Problem Pin
Jean-Marc Molina3-Oct-03 1:12
Jean-Marc Molina3-Oct-03 1:12 
GeneralDialogues en MFC Pin
bumper23-Nov-02 0:54
bumper23-Nov-02 0:54 
GeneralRe: Dialogues en MFC Pin
Gary R. Wheeler23-Nov-02 2:00
Gary R. Wheeler23-Nov-02 2:00 
GeneralRe: Dialogues en MFC Pin
bumper23-Nov-02 2:40
bumper23-Nov-02 2:40 
Ooups.. Sorry WTF | :WTF:
I don't have see this is an english website.

My english translation:

Hello,

I'm developping with MFC, so I have problems with dialogs.

1) I have created an effect dialog like those of photoshop with a preview image, 2 buttons (zoom in, zoom out), a static control displaying the level of zoom, some mouse interaction, and display properties (owner draw)..

I would like to create one new control with contains all this features (in a class CPreviewBox for example).
Is it possible with MFC to create news controls like this I want to create ? Because I will have 100 effects, I don't want to copy/paste 100 times the same code. I want to include in the 100 dialogs an object CPreviewBox which deal with preview.

2) For now I use a button control to display my preview in (with owner draw) but the dialog editor not allow to resize the button pixel per pixel (ie. I want a preview 160*160, the best I had with editor is 161*159). So I would like to use a picture control which can be initialised to good the size (fit to content using a reference bitmap).

Is it possible to draw in the picture control and how ? because this ctrl don't have owner draw property. I want to draw line, circle.. on the preview image.

3) Finally, I want a edit control which can send his value to a slider control when the user press "return" (the dialog windows must stay opened).

I have try with OnChange but it's not possible because if I have to enter -42, with OnChange the effect will be recompute with - -> -4 -> -42.

I have try OnKillFocus, but when I press enter, the windows disapeared (because OK is pressed at the same time). Moreover with OnKillFocus, the user must press "tab" ou clic in another control to validate the edit control value.

What is the way to code this kind of event on an edit box (validate when user press return)

Thanks in advance,

Ignore the preview french thread.

GeneralRe: Dialogues en MFC Pin
Maximilien24-Nov-02 16:19
Maximilien24-Nov-02 16:19 
GeneralRe: Dialogues en MFC Pin
bumper25-Nov-02 11:08
bumper25-Nov-02 11:08 
GeneralPreserving clipboard content Pin
mariuszpopiolek22-Nov-02 23:49
mariuszpopiolek22-Nov-02 23:49 
GeneralRe: Preserving clipboard content Pin
Gary R. Wheeler23-Nov-02 2:11
Gary R. Wheeler23-Nov-02 2:11 
GeneralRe: Preserving clipboard content Pin
mariuszpopiolek23-Nov-02 2:22
mariuszpopiolek23-Nov-02 2:22 
GeneralRe: Preserving clipboard content Pin
Paul M Watt23-Nov-02 6:57
mentorPaul M Watt23-Nov-02 6:57 
GeneralRe: Preserving clipboard content Pin
mariuszpopiolek23-Nov-02 13:22
mariuszpopiolek23-Nov-02 13:22 
GeneralConstants in cmath Pin
Anonymous22-Nov-02 23:22
Anonymous22-Nov-02 23:22 
GeneralConstants in <cmath> Pin
Anonymous22-Nov-02 23:21
Anonymous22-Nov-02 23:21 
QuestionHow to detect network connection? Pin
Wenrich22-Nov-02 23:06
Wenrich22-Nov-02 23:06 
AnswerRe: How to detect network connection? Pin
Gary R. Wheeler23-Nov-02 2:25
Gary R. Wheeler23-Nov-02 2:25 
AnswerRe: How to detect network connection? Pin
Michael Dunn23-Nov-02 5:11
sitebuilderMichael Dunn23-Nov-02 5:11 
GeneralMaximizing Pin
S O S22-Nov-02 23:00
S O S22-Nov-02 23:00 
GeneralRe: Maximizing Pin
Gary R. Wheeler23-Nov-02 2:35
Gary R. Wheeler23-Nov-02 2:35 
GeneralRe: Maximizing Pin
S O S23-Nov-02 5:44
S O S23-Nov-02 5:44 
GeneralRe: Maximizing Pin
Paul M Watt23-Nov-02 6:51
mentorPaul M Watt23-Nov-02 6:51 
GeneralRe: Maximizing Pin
S O S23-Nov-02 7:31
S O S23-Nov-02 7:31 

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.