Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

XOR MODE

HI IF I ACTIVATE THIS FUNCTION FOR RECTANGLE FIRST TIME DRAWS RECTANGLE SECOND TIME IT ERASES
BUT FOR DRAWTEXT() AND FILLRECT()

IT DOESNT WORK WHY ?



void xor_mode_function(structGui* stGui)

{

CHAR ch; // This will contain keyboard input

HBRUSH hbrush; // Handle to BRUSH object

HBRUSH hOldBrush; // Stores the old BRUSH object

HPEN hPen;

static POINT oldPoint = {150,150}; // Stores the old point

static POINT beginPoint = {100,100}; // Stores the begin point



int ropOld; // Stores the old Raster Operator

RECT rc;

RECT recttes = {60,60,150,150};



ropOld= SetROP2(stGui->dc,R2_NOTXORPEN);


// if i replace with Fillrect or DrwaText not erases !!!
Rectangle(stGui->dc, beginPoint.x, beginPoint.y, oldPoint.x, oldPoint.y);




}
Sign In or Register to comment.