kishor_sil@yahoo.com
February 27th, 2008, 03:20 AM
hi
i am enumerating an emf trough emf enumerating function , i call my call back function and in that i check for select object gdi trough EMR_SELECTOBJECT,
then i called my function in which i checked for stock object by geting handle trough handle table and then i then got object type using GetObjecType() and then checked for OBJ_BRUSH i then called my function to check for logbrush .
now here my code:
Brush* <function name> (LOGBRUSH& rlogBrush)
{
switch(rlogBrush.lbStyle)
{
case BS_SOLID:
{
Color brcolor;
brcolor.SetFromCOLORREF(rlogBrush.lbColor);
-> pBrush=new SolidBrush(brcolor);
}
break;
}
}
now it is showing error at line -> that new function does not take 3 parameters.
i dont know if i am giving him only one parameter then how he is getting three parameter.
i trace but it is skiping the code for creating solid brush .
i am enumerating an emf trough emf enumerating function , i call my call back function and in that i check for select object gdi trough EMR_SELECTOBJECT,
then i called my function in which i checked for stock object by geting handle trough handle table and then i then got object type using GetObjecType() and then checked for OBJ_BRUSH i then called my function to check for logbrush .
now here my code:
Brush* <function name> (LOGBRUSH& rlogBrush)
{
switch(rlogBrush.lbStyle)
{
case BS_SOLID:
{
Color brcolor;
brcolor.SetFromCOLORREF(rlogBrush.lbColor);
-> pBrush=new SolidBrush(brcolor);
}
break;
}
}
now it is showing error at line -> that new function does not take 3 parameters.
i dont know if i am giving him only one parameter then how he is getting three parameter.
i trace but it is skiping the code for creating solid brush .