Click here to Skip to main content
15,889,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGetting child windows handle Pin
PankajB18-Mar-09 21:26
PankajB18-Mar-09 21:26 
AnswerRe: Getting child windows handle Pin
Sophiya Chen18-Mar-09 22:22
Sophiya Chen18-Mar-09 22:22 
AnswerRe: Getting child windows handle Pin
Sarath C18-Mar-09 22:27
Sarath C18-Mar-09 22:27 
AnswerRe: Getting child windows handle Pin
sonu.saini.76@gmail.com19-Mar-09 0:18
sonu.saini.76@gmail.com19-Mar-09 0:18 
AnswerRe: Getting child windows handle Pin
sonu.saini.76@gmail.com19-Mar-09 4:59
sonu.saini.76@gmail.com19-Mar-09 4:59 
QuestionHow to convert RTF to plain text ? Pin
csc18-Mar-09 20:25
csc18-Mar-09 20:25 
AnswerRe: How to convert RTF to plain text ? Pin
Stuart Dootson18-Mar-09 22:24
professionalStuart Dootson18-Mar-09 22:24 
QuestionProblem in Images display on dialog. Pin
hemlat18-Mar-09 19:10
hemlat18-Mar-09 19:10 
Hi,

In my application I am having dialog .I am receiving images from mobile and I am displaying Images on dialog. I have added vertical scroll bar to dialog.I am creating 8 static controls programatically on dialog and I am using these 8 static controls for Image display. At a time I am displaying 8 Images on Dialog.I am using Scroll bar to display all Images. I have written following code in my "displayImage" function.for every scroll I am calling this function.
for(int i = 0; i < 8; i++)
	{
		//To get 4 Images for each row
		if((i != 0)&&(i%4 == 0))
		{
			x1 = 1;
			x2 = 250;
			y1 = y1+355;
			y2 = y2+355;
		}
		
		//Static control creation for Image
		myStatic[i] = new CStatic();

		myStatic[i]->Create(_T(""),WS_CHILD|WS_VISIBLE|SS_BITMAP,
CRect(x1,y1,x2,y2),this);  
image.Load(Image);
		HBITMAP hbmp = image.Detach();
		if(hbmp == NULL)
		{		
			Error = GetLastError();
		}
                if(hbmp != NULL)
		myStatic[i]->SetBitmap(hbmp); 
}


First 8 Images are displaying Properly.After that If I scroll Scroll Bar dialog is showing first 8 Images first and It is displaying second 8 images.If I scroll third time it is showing first 16 images after that it is showing third 8 images and so on.Can anyone help me.
AnswerRe: Problem in Images display on dialog. Pin
_AnsHUMAN_ 18-Mar-09 20:21
_AnsHUMAN_ 18-Mar-09 20:21 
GeneralRe: Problem in Images display on dialog. Pin
hemlat18-Mar-09 21:07
hemlat18-Mar-09 21:07 
GeneralRe: Problem in Images display on dialog. Pin
_AnsHUMAN_ 19-Mar-09 1:23
_AnsHUMAN_ 19-Mar-09 1:23 
GeneralRe: Problem in Images display on dialog. Pin
hemlat19-Mar-09 21:06
hemlat19-Mar-09 21:06 
Questionhow to convert legacy C++ library with nested class and callback to managed code [modified] Pin
Frank_Q18-Mar-09 16:57
Frank_Q18-Mar-09 16:57 
AnswerRe: how to convert legacy C++ library with nested class and callback to managed code Pin
Frank_Q19-Mar-09 16:03
Frank_Q19-Mar-09 16:03 
GeneralRe: how to convert legacy C++ library with nested class and callback to managed code Pin
David Knechtges20-Mar-09 10:07
David Knechtges20-Mar-09 10:07 
GeneralRe: how to convert legacy C++ library with nested class and callback to managed code Pin
Frank_Q21-Mar-09 5:03
Frank_Q21-Mar-09 5:03 
Questionproblem accessing member functions from LRESULT CALLBACK Function() { } Pin
abiemann18-Mar-09 15:17
abiemann18-Mar-09 15:17 
AnswerRe: problem accessing member functions from LRESULT CALLBACK Function() { } Pin
«_Superman_»18-Mar-09 16:48
professional«_Superman_»18-Mar-09 16:48 
GeneralRe: problem accessing member functions from LRESULT CALLBACK Function() { } Pin
abiemann19-Mar-09 8:18
abiemann19-Mar-09 8:18 
Questiondesign a Kohonen SOM of 15 neurons in a 3X5 rectangular grid Pin
w118sxa18-Mar-09 11:30
w118sxa18-Mar-09 11:30 
AnswerRe: design a Kohonen SOM of 15 neurons in a 3X5 rectangular grid Pin
Maximilien18-Mar-09 12:40
Maximilien18-Mar-09 12:40 
Questionpersistent pointer/memory allocation Pin
Ylno18-Mar-09 10:04
Ylno18-Mar-09 10:04 
AnswerRe: persistent pointer/memory allocation Pin
Joe Woodbury18-Mar-09 10:12
professionalJoe Woodbury18-Mar-09 10:12 
AnswerRe: persistent pointer/memory allocation Pin
Luc Pattyn18-Mar-09 13:19
sitebuilderLuc Pattyn18-Mar-09 13:19 
AnswerRe: persistent pointer/memory allocation Pin
«_Superman_»18-Mar-09 16:53
professional«_Superman_»18-Mar-09 16:53 

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.