Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String Problem Pin
CPallini8-Oct-09 20:53
mveCPallini8-Oct-09 20:53 
GeneralRe: String Problem Pin
Hari_168-Oct-09 22:20
Hari_168-Oct-09 22:20 
GeneralRe: String Problem Pin
CPallini8-Oct-09 22:35
mveCPallini8-Oct-09 22:35 
QuestionRe: String Problem Pin
David Crow9-Oct-09 3:46
David Crow9-Oct-09 3:46 
AnswerRe: String Problem Pin
CPallini13-Jan-10 11:46
mveCPallini13-Jan-10 11:46 
AnswerRe: String Problem Pin
David Crow9-Oct-09 3:48
David Crow9-Oct-09 3:48 
Questionhelp UpdateLayeredWindow problem Pin
gamja8-Oct-09 16:43
gamja8-Oct-09 16:43 
QuestionRotating bitmap. Pin
Nikz28-Oct-09 15:28
Nikz28-Oct-09 15:28 
Hi. Well... I'am trying to make my own transparent button, but i need to rotate it to. I tryed to use SetWorldTransform function to make a rotation, but it results in clean dialog. Pls tell me what do i do wrong?

	void MPictureBox::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
	{
	
		CDC* pDC;
		pDC = CDC::FromHandle(lpDrawItemStruct->hDC);
		m_rtfmdc = new CDC;  
		m_rtfmdc->CreateCompatibleDC(pDC);
		m_rtfmdc->SelectObject(m_bmp);

/*	  XFORM xf = {cos(angle),   sin(angle),
                  -sin(angle), cos(angle),
                  0, 0};*/   
	  
		int Rotate=1;
		XFORM xf = {0,1,-1,0,0,0}; //angle = 90
	int OldMode = SetGraphicsMode(*pDC,GM_ADVANCED); 	
	  SetWorldTransform(*pDC,&xf);
		
	  switch (MBStyle)
	  {
	  case MBUT_TRANSPARENT:
			 pDC->TransparentBlt(0,0,ButSize,ButSize,m_rtfmdc,ButSize*ImageNumb,0,ButSize,ButSize,RGB(0,0,0));
			break;
	  case MBUT_SOLID:
			pDC->BitBlt(0,0,ButSize,ButSize,m_rtfmdc,ButSize*ImageNumb,0,SRCCOPY);
			break;

		default: 
			MessageBoxA("Nepravilnie parametri prozrachnosti");
		}
		SetGraphicsMode(*pDC, OldMode);
		m_rtfmdc->DeleteDC();
			m_rtfmdc=NULL;
	}

AnswerRe: Rotating bitmap. Pin
«_Superman_»8-Oct-09 17:35
professional«_Superman_»8-Oct-09 17:35 
GeneralRe: Rotating bitmap. Pin
Nikz29-Oct-09 10:13
Nikz29-Oct-09 10:13 
QuestionWhat kind of reason will cause CWnd derived class failed to be created? Pin
transoft8-Oct-09 11:31
transoft8-Oct-09 11:31 
AnswerRe: What kind of reason will cause CWnd derived class failed to be created? Pin
«_Superman_»8-Oct-09 11:58
professional«_Superman_»8-Oct-09 11:58 
GeneralRe: What kind of reason will cause CWnd derived class failed to be created? Pin
transoft8-Oct-09 12:10
transoft8-Oct-09 12:10 
GeneralRe: What kind of reason will cause CWnd derived class failed to be created? Pin
«_Superman_»8-Oct-09 12:16
professional«_Superman_»8-Oct-09 12:16 
GeneralRe: What kind of reason will cause CWnd derived class failed to be created? Pin
transoft8-Oct-09 12:29
transoft8-Oct-09 12:29 
QuestionMFC application using different Windows theme Pin
Myzrael8-Oct-09 8:50
Myzrael8-Oct-09 8:50 
AnswerRe: MFC application using different Windows theme Pin
transoft8-Oct-09 11:36
transoft8-Oct-09 11:36 
QuestionIs there any way ,that i could access to special icons like "My Document" Folder icon or "Contacts" Folder Icon or even "My Computer" Icon of the operating system. Pin
A&Ms8-Oct-09 8:37
A&Ms8-Oct-09 8:37 
AnswerRe: Is there any way ,that i could access to special icons like "My Document" Folder icon or "Contacts" Folder Icon or even "My Computer" Icon of the operating system. Pin
Code-o-mat8-Oct-09 9:38
Code-o-mat8-Oct-09 9:38 
GeneralRe: Is there any way ,that i could access to special icons like "My Document" Folder icon or "Contacts" Folder Icon or even "My Computer" Icon of the operating system. Pin
A&Ms8-Oct-09 20:43
A&Ms8-Oct-09 20:43 
GeneralRe: Is there any way ,that i could access to special icons like "My Document" Folder icon or "Contacts" Folder Icon or even "My Computer" Icon of the operating system. Pin
Code-o-mat8-Oct-09 22:26
Code-o-mat8-Oct-09 22:26 
GeneralRe: Is there any way ,that i could access to special icons like "My Document" Folder icon or "Contacts" Folder Icon or even "My Computer" Icon of the operating system. Pin
A&Ms9-Oct-09 8:27
A&Ms9-Oct-09 8:27 
GeneralRe: Is there any way ,that i could access to special icons like "My Document" Folder icon or "Contacts" Folder Icon or even "My Computer" Icon of the operating system. Pin
Code-o-mat9-Oct-09 8:48
Code-o-mat9-Oct-09 8:48 
Questionoverloading left-shift operator to output to stringstream Pin
Sauce!8-Oct-09 6:25
Sauce!8-Oct-09 6:25 
AnswerRe: overloading left-shift operator to output to stringstream Pin
David Crow8-Oct-09 7:38
David Crow8-Oct-09 7:38 

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.