Click here to Skip to main content
15,922,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Saurabh.Garg20-Nov-08 19:15
Saurabh.Garg20-Nov-08 19:15 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Darrel Q Pham20-Nov-08 19:46
Darrel Q Pham20-Nov-08 19:46 
AnswerRe: Can I SendMessage() to another user's window within the same computer? Pin
Randor 20-Nov-08 22:16
professional Randor 20-Nov-08 22:16 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Darrel Q Pham21-Nov-08 15:09
Darrel Q Pham21-Nov-08 15:09 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Randor 22-Nov-08 3:03
professional Randor 22-Nov-08 3:03 
GeneralRe: Can I SendMessage() to another user's window within the same computer? Pin
Darrel Q Pham25-Nov-08 10:14
Darrel Q Pham25-Nov-08 10:14 
QuestionFaster than memcpy()... Pin
bulg20-Nov-08 11:50
bulg20-Nov-08 11:50 
AnswerRe: Faster than memcpy()... Pin
BobInNJ20-Nov-08 12:51
BobInNJ20-Nov-08 12:51 
GeneralRe: Faster than memcpy()... Pin
PJ Arends20-Nov-08 14:41
professionalPJ Arends20-Nov-08 14:41 
GeneralRe: Faster than memcpy()... Pin
Randor 20-Nov-08 22:30
professional Randor 20-Nov-08 22:30 
GeneralRe: Faster than memcpy()... Pin
BobInNJ21-Nov-08 6:06
BobInNJ21-Nov-08 6:06 
GeneralRe: Faster than memcpy()... Pin
Randor 21-Nov-08 6:21
professional Randor 21-Nov-08 6:21 
AnswerRe: Faster than memcpy()... Pin
cmk20-Nov-08 16:51
cmk20-Nov-08 16:51 
QuestionA Question about Constructors Pin
BobInNJ20-Nov-08 8:17
BobInNJ20-Nov-08 8:17 
AnswerRe: A Question about Constructors Pin
led mike20-Nov-08 8:55
led mike20-Nov-08 8:55 
AnswerRe: A Question about Constructors Pin
Venkata Rama Subbarao20-Nov-08 9:08
Venkata Rama Subbarao20-Nov-08 9:08 
QuestionNeed Help in Read a file at compilation time to initialize variable Pin
scamguru20-Nov-08 7:16
scamguru20-Nov-08 7:16 
AnswerRe: Need Help in Read a file at compilation time to initialize variable Pin
Code-o-mat20-Nov-08 7:28
Code-o-mat20-Nov-08 7:28 
GeneralRe: Need Help in Read a file at compilation time to initialize variable Pin
scamguru20-Nov-08 7:30
scamguru20-Nov-08 7:30 
GeneralRe: Need Help in Read a file at compilation time to initialize variable Pin
toxcct20-Nov-08 7:38
toxcct20-Nov-08 7:38 
QuestionDefinitive Direct3D example Pin
Jim Crafton20-Nov-08 7:09
Jim Crafton20-Nov-08 7:09 
I'm having some issues with some D3D code when trying to display 2D images. All I want is the following:
Set up D3D
Set up a viewport that is suitable for 2D drawing/rendering of images and that doesn't scale the images when the window is resized
Draw the 2D image at some x,y coord

I have some code that does all this, *but* the image quality when rendered is not as nice as OpenGL does. I'm trying to figure out if it's something I'm doing wrong, or if it's just a difference between OGL and D3D. The image is very slighty "fuzzy", as if a small amount of scaling was being performed.

The vertex struct is something like this:

struct PANELVERTEX
{
    FLOAT x, y, z;
	float rhw;
    DWORD color;
    FLOAT u, v;
};

#define D3DFVF_PANELVERTEX (D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1)


All z coords are assigned 0.0
The rest of coords for the image are assigned :

pVertices[0].x = 0.0f - 0.5f;
pVertices[0].y = 0.0f - 0.5f;
pVertices[0].u = 0.0f;
pVertices[0].v = 0.0f;

pVertices[1].x = w - 0.5f;
pVertices[1].y = 0.0f - 0.5f;
pVertices[1].u = 1.0f;
pVertices[1].v = 0.0f;

pVertices[2].x = w - 0.5f;
pVertices[2].y = h - 0.5f;
pVertices[2].u = 1.0f;
pVertices[2].v = 1.0f;

pVertices[3].x = 0.0f - 0.5f;
pVertices[3].y = h - 0.5f;
pVertices[3].u = 0.0f;
pVertices[3].v = 1.0f;


where w and h are the width and height of the image.

When I start to render stuff I use
D3DXMATRIX Identity;

D3DXMatrixOrthoLH(&Ortho2D, r.getWidth(), r.getHeight(), 
	0.0f, 1.0f);
D3DXMatrixIdentity(&Identity);

Where r is the client rect for the window

I then draw the vertices using a D3DPT_TRIANGLEFAN.

¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
VCF Blog

AnswerRe: Definitive Direct3D example Pin
Code-o-mat20-Nov-08 7:19
Code-o-mat20-Nov-08 7:19 
GeneralRe: Definitive Direct3D example Pin
Jim Crafton20-Nov-08 7:29
Jim Crafton20-Nov-08 7:29 
GeneralRe: Definitive Direct3D example Pin
Code-o-mat20-Nov-08 7:58
Code-o-mat20-Nov-08 7:58 
GeneralRe: Definitive Direct3D example Pin
cmk20-Nov-08 12:39
cmk20-Nov-08 12:39 

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.