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

C / C++ / MFC

 
GeneralRe: Using SetFocus() in a push button. Pin
Albert Holguin17-Mar-11 9:26
professionalAlbert Holguin17-Mar-11 9:26 
QuestionRe: Using SetFocus() in a push button. Pin
David Crow17-Mar-11 10:43
David Crow17-Mar-11 10:43 
AnswerRe: Using SetFocus() in a push button. Pin
dipuks17-Mar-11 11:07
dipuks17-Mar-11 11:07 
GeneralRe: Using SetFocus() in a push button. Pin
Klaus-Werner Konrad17-Mar-11 12:46
Klaus-Werner Konrad17-Mar-11 12:46 
QuestionVisual C++ properties (Teaching an old dog old tricks)... Pin
bob1697217-Mar-11 5:13
bob1697217-Mar-11 5:13 
QuestionObject movement in OpenGl Pin
GAJERA16-Mar-11 22:03
GAJERA16-Mar-11 22:03 
AnswerRe: Object movement in OpenGl Pin
Cedric Moonen16-Mar-11 22:08
Cedric Moonen16-Mar-11 22:08 
GeneralRe: Object movement in OpenGl Pin
GAJERA17-Mar-11 20:31
GAJERA17-Mar-11 20:31 
Ok,Here i am sending you my RenderScene function which is continuous call.
I am loading image Once only.The other are text,Line,Point and 3D object.

Void RenderScene()
{	
	glClear(GL_COLOR_BUFFER_BIT| GL_DEPTH_BUFFER_BIT );

	float R = (float)GetRValue(m_s3DDispManagerSetting.dwScreenBkColor)/255.0;
	float G = (float)GetGValue(m_s3DDispManagerSetting.dwScreenBkColor)/255.0;
	float B = (float)GetBValue(m_s3DDispManagerSetting.dwScreenBkColor)/255.0;
	::glClearColor(R, G, B, 0.0f); 


    	glPushMatrix();
	glLoadIdentity();
	
	glShadeModel(GL_FLAT) ;
	glEnable(GL_NORMALIZE) ;

	multimap<int , stObjectInfo>::iterator it;	

	//Scalling as per user selection
	glScalef(m_fScale, m_fScale, m_fScale);

	//3D rotation angle
	glRotated(m_fRAngle[0],1.0, 0.0, 0.0);
	glRotated(m_fRAngle[1],0.0,1.0, 0.0);
	glRotated(m_fRAngle[2],0.0,0.0,1.0);
	
	
	glDepthMask(GL_TRUE);


	for(it = m_sMapObjectInfo.begin(); it != m_sMapObjectInfo.end(); it++)
	{
		stObjectInfo sObjectInfo = (*it).second;
		if(sObjectInfo.eObjectType == OBJECT_LINE)
			glCallList((*it).first);
	}		
 	for(it = m_sMapObjectInfo.begin(); it != m_sMapObjectInfo.end(); it++)
	{
		stObjectInfo sObjectInfo = (*it).second;
		if(sObjectInfo.eObjectType == OBJECT_POINT)
			glCallList((*it).first);
	}
	
	for(it = m_sMapObjectInfo.begin(); it != m_sMapObjectInfo.end(); it++)
	{
		stObjectInfo sObjectInfo = (*it).second;
		if(sObjectInfo.eObjectType == OBJECT_TEXT)
			glCallList((*it).first);
	}		
	for(it = m_sMapObjectInfo.begin(); it != m_sMapObjectInfo.end(); it++)
	{
		stObjectInfo sObjectInfo = (*it).second;
		if(sObjectInfo.eObjectType == OBJECT_IMAGE)
		   glCallList((*it).first);
	}
	for(it = m_sMapObjectInfo.begin(); it != m_sMapObjectInfo.end(); it++)
	
   
	glEnable(GL_CULL_FACE);
	glCullFace(GL_BACK);			
	glFrontFace(GL_CW);		

	for(it = m_sMapObjectInfo.begin(); it != m_sMapObjectInfo.end(); it++)
	{
		stObjectInfo sObjectInfo = (*it).second;
		if(sObjectInfo.eObjectType == OBJECT_3D)
		{
			glMaterialfv(GL_FRONT_AND_BACK , GL_DIFFUSE, sObjectInfo.fIntensity);
			glCallList((*it).first);
		}
	}

	glDisable(GL_CULL_FACE);
	glDisable(GL_BLEND);			
	glPopMatrix();	
	
}

QuestionRemove button border Pin
goldenrose916-Mar-11 17:04
goldenrose916-Mar-11 17:04 
AnswerRe: Remove button border Pin
Cool_Dev16-Mar-11 19:10
Cool_Dev16-Mar-11 19:10 
GeneralRe: Remove button border Pin
goldenrose916-Mar-11 21:30
goldenrose916-Mar-11 21:30 
AnswerRe: Remove button border Pin
ThatsAlok16-Mar-11 23:43
ThatsAlok16-Mar-11 23:43 
GeneralRe: Remove button border Pin
goldenrose917-Mar-11 2:07
goldenrose917-Mar-11 2:07 
GeneralRe: Remove button border Pin
Klaus-Werner Konrad17-Mar-11 9:22
Klaus-Werner Konrad17-Mar-11 9:22 
GeneralRe: Remove button border Pin
goldenrose917-Mar-11 15:07
goldenrose917-Mar-11 15:07 
QuestionIs there some APIs for get the force of click? Pin
whiteclouds16-Mar-11 15:44
whiteclouds16-Mar-11 15:44 
AnswerRe: Is there some APIs for get the force of click? Pin
Ozer Karaagac16-Mar-11 16:10
professionalOzer Karaagac16-Mar-11 16:10 
GeneralRe: Is there some APIs for get the force of click? Pin
whiteclouds16-Mar-11 17:22
whiteclouds16-Mar-11 17:22 
GeneralRe: Is there some APIs for get the force of click? Pin
Ozer Karaagac16-Mar-11 23:57
professionalOzer Karaagac16-Mar-11 23:57 
GeneralRe: Is there some APIs for get the force of click? Pin
whiteclouds17-Mar-11 21:48
whiteclouds17-Mar-11 21:48 
AnswerRe: Is there some APIs for get the force of click? Pin
Rajesh R Subramanian16-Mar-11 22:01
professionalRajesh R Subramanian16-Mar-11 22:01 
GeneralRe: Is there some APIs for get the force of click? Pin
CPallini16-Mar-11 22:53
mveCPallini16-Mar-11 22:53 
GeneralRe: Is there some APIs for get the force of click? Pin
ThatsAlok16-Mar-11 23:48
ThatsAlok16-Mar-11 23:48 
GeneralRe: Is there some APIs for get the force of click? Pin
CPallini17-Mar-11 0:33
mveCPallini17-Mar-11 0:33 
GeneralRe: Is there some APIs for get the force of click? Pin
ThatsAlok17-Mar-11 4:23
ThatsAlok17-Mar-11 4:23 

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.