Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Help with a Function related with Circular Linked List Pin
David Crow17-Oct-09 16:53
David Crow17-Oct-09 16:53 
AnswerRe: Help with a Function related with Circular Linked List Pin
Naumf18-Oct-09 3:04
Naumf18-Oct-09 3:04 
AnswerRe: Help with a Function related with Circular Linked List Pin
David Crow18-Oct-09 13:03
David Crow18-Oct-09 13:03 
GeneralRe: Help with a Function related with Circular Linked List Pin
Naumf19-Oct-09 8:05
Naumf19-Oct-09 8:05 
GeneralRe: Help with a Function related with Circular Linked List Pin
David Crow19-Oct-09 8:09
David Crow19-Oct-09 8:09 
GeneralRe: Help with a Function related with Circular Linked List Pin
Naumf19-Oct-09 8:15
Naumf19-Oct-09 8:15 
QuestionAccessing synch object in DirectDraw Pin
Code-o-mat17-Oct-09 12:16
Code-o-mat17-Oct-09 12:16 
Questionhow to draw in a dialog's client area, but from an event ocurred in another dialog? Pin
timbk17-Oct-09 10:53
timbk17-Oct-09 10:53 
Hello, I hope that somebody can help me, the thing is this:
the context: my application has one main dialog and one non-main dialog.
the question: When I press a specific button in the non-main dialog, a line has to be drawn in the client area of the main dialog. how can I do this?

Actually I have a method declared as public and defined in the main dialog class (an instance from Cdialog let's say) to draw my lines, this is the method:

void CCalibracionDlg::BorrarRecta(int Rx,unsigned char D_Ry, unsigned char Vref)
{

CClientDC pDC(this) ;
float tgAng=0,Ry=0;			// float porque estas variables tienen cocientes		
int  x = 0 , y = 0 ,y_=0;	// int porque pueden ser mayor q 255
char multiplo=0;
unsigned char indice_recta=0, y_RectaVieja[300]; // con char alcanza
unsigned int pixel=0, PixelRectaVieja[300];		// int porque son de 32bit
pDC.SetWindowOrg(-168,-165);				// seteo el origen de coordenadas a ese punto, q es el centro de la grilla
.
.a lot of code that it isn't important for this issue
.
}


Of course when i use this code within the main dialog it works fine, the lines are drawn in the client area of the main dialog, but how can i do to use this code to draw in the client area of the main dialog when i press a button in the non-man dialog? .
Thanks in advance, let me know if you need more information.
AnswerRe: how to draw in a dialog's client area, but from an event ocurred in another dialog? Pin
Hans Dietrich17-Oct-09 18:45
mentorHans Dietrich17-Oct-09 18:45 
GeneralRe: how to draw in a dialog's client area, but from an event ocurred in another dialog? Pin
timbk18-Oct-09 5:46
timbk18-Oct-09 5:46 
Questionalphanumaric and numeric checking Pin
Omegaclass17-Oct-09 10:22
Omegaclass17-Oct-09 10:22 
AnswerRe: alphanumaric and numeric checking Pin
«_Superman_»17-Oct-09 11:38
professional«_Superman_»17-Oct-09 11:38 
GeneralRe: alphanumaric and numeric checking Pin
Omegaclass17-Oct-09 13:23
Omegaclass17-Oct-09 13:23 
Questiondialog based MFC multithreaded server Pin
Manmohan2917-Oct-09 7:17
Manmohan2917-Oct-09 7:17 
AnswerRe: dialog based MFC multithreaded server Pin
Moak17-Oct-09 8:21
Moak17-Oct-09 8:21 
GeneralRe: dialog based MFC multithreaded server Pin
Manmohan2917-Oct-09 9:12
Manmohan2917-Oct-09 9:12 
GeneralRe: dialog based MFC multithreaded server Pin
Manmohan2917-Oct-09 9:22
Manmohan2917-Oct-09 9:22 
GeneralRe: dialog based MFC multithreaded server Pin
Rajesh R Subramanian17-Oct-09 10:28
professionalRajesh R Subramanian17-Oct-09 10:28 
GeneralRe: dialog based MFC multithreaded server Pin
Moak17-Oct-09 11:12
Moak17-Oct-09 11:12 
NewsRe: dialog based MFC multithreaded server Pin
Manmohan2918-Oct-09 0:48
Manmohan2918-Oct-09 0:48 
GeneralRe: dialog based MFC multithreaded server Pin
Rajesh R Subramanian18-Oct-09 2:38
professionalRajesh R Subramanian18-Oct-09 2:38 
GeneralRe: dialog based MFC multithreaded server Pin
Manmohan2918-Oct-09 4:03
Manmohan2918-Oct-09 4:03 
GeneralRe: dialog based MFC multithreaded server Pin
Moak18-Oct-09 8:04
Moak18-Oct-09 8:04 
QuestionIs there any existing function to change language ID to language String? Pin
includeh1017-Oct-09 3:11
includeh1017-Oct-09 3:11 
AnswerRe: Is there any existing function to change language ID to language String? Pin
Michael Schubert17-Oct-09 5:22
Michael Schubert17-Oct-09 5:22 

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.