Click here to Skip to main content
15,902,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
su_marvel7-Jul-09 4:21
su_marvel7-Jul-09 4:21 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
Code-o-mat7-Jul-09 4:54
Code-o-mat7-Jul-09 4:54 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
su_marvel7-Jul-09 5:06
su_marvel7-Jul-09 5:06 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
Code-o-mat7-Jul-09 5:33
Code-o-mat7-Jul-09 5:33 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
su_marvel7-Jul-09 22:11
su_marvel7-Jul-09 22:11 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
Code-o-mat7-Jul-09 23:31
Code-o-mat7-Jul-09 23:31 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
su_marvel8-Jul-09 3:36
su_marvel8-Jul-09 3:36 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
Code-o-mat8-Jul-09 5:11
Code-o-mat8-Jul-09 5:11 
Well, as said, google is your friend, you can find all that info, however, add this to the message map of your window: ON_WM_PAINT()
It would look something like this, please don't copy paste this into your code and try to compile, it is just an example so you know how it should look...so about...
BEGIN_MESSAGE_MAP(CMyWindow, CMyWindowsSuperClass)
  ...
  ON_WM_PAINT()
  ...
END_MESSAGE_MAP()

Let's assume you named the class for your window CMyWindow, so in the header file, declare the OnPaint method similarry to this:
class CMyWindow: public CMyWindowsSuperClass
{
  ...
  void OnPaint();
  ...
};

and then implement this method in the cpp file that contains your window class' implementation, similar to this:
void CMyWindow::OnPaint()
{
  CPaintDC dc(this);
  //Perform drawing here using the dc as shown to you in earlier posts...
}

I hope this helps...

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
su_marvel8-Jul-09 22:21
su_marvel8-Jul-09 22:21 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
Code-o-mat8-Jul-09 22:28
Code-o-mat8-Jul-09 22:28 
AnswerRe: How to convert an array of 32bit integers to image in C++ Pin
Adam Roderick J6-Jul-09 5:27
Adam Roderick J6-Jul-09 5:27 
GeneralRe: How to convert an array of 32bit integers to image in C++ Pin
su_marvel7-Jul-09 1:01
su_marvel7-Jul-09 1:01 
QuestionHow to differenciate? Pin
FISH7866-Jul-09 3:20
FISH7866-Jul-09 3:20 
AnswerRe: How to differenciate? Pin
Stuart Dootson6-Jul-09 4:04
professionalStuart Dootson6-Jul-09 4:04 
GeneralRe: How to differenciate? Pin
FISH7866-Jul-09 4:11
FISH7866-Jul-09 4:11 
Questionunknown size of void * Pin
liquid_6-Jul-09 3:02
liquid_6-Jul-09 3:02 
AnswerRe: unknown size of void * Pin
Cedric Moonen6-Jul-09 3:07
Cedric Moonen6-Jul-09 3:07 
AnswerRe: unknown size of void * Pin
Adam Roderick J6-Jul-09 5:33
Adam Roderick J6-Jul-09 5:33 
AnswerRe: unknown size of void * Pin
TheGreatAndPowerfulOz6-Jul-09 10:49
TheGreatAndPowerfulOz6-Jul-09 10:49 
AnswerRe: unknown size of void * Pin
«_Superman_»6-Jul-09 17:21
professional«_Superman_»6-Jul-09 17:21 
QuestionMaking windows clipboard a unicode compatible.. Pin
Rakesh56-Jul-09 3:00
Rakesh56-Jul-09 3:00 
AnswerRe: Making windows clipboard a unicode compatible.. Pin
Iain Clarke, Warrior Programmer6-Jul-09 3:16
Iain Clarke, Warrior Programmer6-Jul-09 3:16 
GeneralRe: Making windows clipboard a unicode compatible.. Pin
Rakesh57-Jul-09 19:31
Rakesh57-Jul-09 19:31 
QuestionMay I ask ISAPI questions here, or do they belong in the Web Dev forum? That forum's not as active -nt- Pin
Mike the Red6-Jul-09 1:57
Mike the Red6-Jul-09 1:57 
QuestionAttempt to open a table failed...... Pin
vijay.victory6-Jul-09 1:20
vijay.victory6-Jul-09 1:20 

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.