Win32 - speaking on RECT: what is the diference between the PAINTSTRUCT hdc and memory HDC?

see these code:
RECT b={test.rcPaint.left+2, test.rcPaint.top, test.rcPaint.right-2, test.rcPaint.bottom};
imglabel.DrawText(inst->strCaption, b);
//DrawText() from my image class:
void DrawText(string strText,RECT HDCrect)
char *text=(char*)strText.c_str();
DrawTextEx(HBitmap,text,-1,&HDCrect,DT_LEFT,NULL);
what is the deference, speaking on RECT, between PAINTSTRUCT hdc and memory HDC?
if i do top=1 or left=1, the Region reault is changed too :(

i was getting  problems between the image size and bottom\right, with Regions.
see these function on my image class:
void DrawText(string strText,int PosX=0, int PosY=0)
// geting the text rectangle
RECT r = { 0, 0, 0, 0 };
char *text=(char*)strText.c_str();
::DrawText(HBitmap, text, -1, &r, DT_CALCRECT);
//change the position of the text
r.left=PosX;
r.top=PosY;
r.bottom=r.bottom+PosY;
r.right=r.right+PosX;
//draw the text
::DrawText(HBitmap, text, -1,&r,DT_LEFT);
and see how i use it:
imglabel.DrawText(inst->strCaption);//inst my label object pointer
//imglabel is my image object
if(inst->blnTransparent==true)
//draw the image
TransparentBlt(test.hdc,0,0,imglabel.width(),imglabel.height(),imglabel,0,0, imglabel.width(),imglabel.height(), inst->clrBackColor);
//destroy the region
SetWindowRgn(inst->hwnd,NULL,TRUE);
//Create and set them region
inst->LabelRegion=RegionbyBitmap(imglabel, inst->clrBackColor);
SetWindowRgn(inst->hwnd,inst->LabelRegion,TRUE);
if i don't destroy the Region, before use the new Region, i get a size problem(less pixels).
by some reason the text RECT can affect the Region size :(

Similar Messages

  • What are the disc space and memory requirements for the apps?

    What are the disc-space and memory requirements to run the apps

    Hello John!
    thank you for the info. However, as I have only 1Gb memory and a 32Gb
    solid-state disc, I think that I will stay with Acrobate.com for a while
    longer.
    Regards
    Brianb

  • What are the minimum CPU and Memory requirements for R12 Vision instance?

    We are in the process of trying to figure out what the minimum hardware requirements are for installing the R12 Vision instance. This Vision instance would only have 5 or less concurrent users. We may have to order a new server and we are wondering what the minimum CPU and memory would be? Oracle Support will not give us this information.
    We aleady know how much disk space it will need.
    Dan

    Hi,
    See these links.
    A Primer on Hardware Sizing for Oracle E-Business Suite
    http://blogs.oracle.com/stevenChan/2010/08/ebs_sizing_primer.html
    What Are the Minimum Desktop Requirements for EBS?
    http://blogs.oracle.com/stevenChan/2010/09/ebs_pc_clients.html
    Also, please see old threads for similar discussion.
    Hardware Requirements
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Hardware+Requirements&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Benchmark
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Benchmark&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • What are the logical structure and physical structure in oracle

    what are the logical structure and physical structure in oracle and how can allocate a DB block size as default size is 8192?

    From the Concepts Guide
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm
    The physical structures are:
    Datafiles
    Control Files
    Redo Log Files
    Archive Log Files
    Parameter Files
    Alert and Trace Log Files
    Backup Files
    The Logical Structures are:
    Tablespaces
    Oracle Data Blocks
    Extents
    Segments

  • What are the options "alert" and "passes" under my account info?

    Hi guys, I was going on viewing my account info, and I happened to see some options which I have no idea what are their usage? Can someone tell me what is the option "passes" and "alert" for? Thank you

    Passes will list any season passes you have purchased and still have some left to get.
    Alerts is to notify you of new music from artists you select.
    Go to the artist page in iTunes and scroll to the bottom and click on *Alert me*.

  • My iSight is not working on my Macbook Pro. What are the possible problems and solutions?

    My iSight is not working on my Macbook Pro. What are the possible problems and solutions?

    Hello Douglas,
    Thank you for the details of the issue you are experiencing with the built-in iSight camera on your MacBook Pro.  I recommend the following steps for this issue:
    Important: Follow these instructions in order. Test the camera between steps to see if the issue is resolved.
    Built-in iSight cameras
    These steps are for iSight cameras that are built into a computer, such as the iMac G5 (iSight) or later, the MacBook, or MacBook Pro.
    See if the issue is application-specific.
    Try another application (iSight works with applications like iChat, PhotoBooth, and iMovie HD 6) to see if the iSight camera exhibits the same behavior in all applications. If it only happens in one application, try reinstalling that application.
    See if the issue is user-specific.
    Test your iSight camera in another user account. If the issue only occurs in one user, the issue would be isolated to user settings.
    Find out if the computer recognizes the iSight
    Check System Profiler (in the Utilities folder, inside the Applications folder). Under the USB header, check to see if the iSight camera is detected.
    Reset SMC or PMU
    Reset your computer's SMC or PMU, and then check System Profiler again. (SMC reset instructions for iMac G5 (iSight), Intel-based iMacs; PMU reset instructions for MacBook and MacBook Pro.)
    If your built-in iSight camera is still not behaving correctly after trying all these steps, you may need to contact Apple or an Apple-Authorized Service Provider for service.
    You can find the full article here:
    How to Troubleshoot iSight
    http://support.apple.com/kb/ht2090
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • What are the different tools and techniques available to track analytics in SharePoint online 2013?

    I want to know What are the different tools and techniques available to track analytics in SharePoint online 2013. Please provide your suggestions/ inputs. Thanks in advance.

    you can Use the Web Analytics Integration app  to
    connect your SharePoint Online public website to third-party web analytics services, such as Webtrends, Google Analytics, Adobe, and so on.
    Google Analytics
    Webtrends for SharePoint
    CARDIOLOG ANALYTICS
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • What are the pro's and con's of the 4s?

    I am not yet an owner of the 4s iphone. So what are the pro's and con's of owning the white 32gb iphone 4s? I have had the white 32 gb iphone 3gs for two years and until I get a job I will not be buying the 4s I so need.

    Samplers do alot of things, what do you need a sampler for?
    Korgs remind me of alot of presets and alot of verb and chorus. I guess if you're posting here you already have EXS and want more sounds or more functionality and if the korg thing is true you lean more to sampling/synthesis than instrument recreation (as in you probably aren't going for VSL if the korg caught your ear). Independence looks really cool, it's quite new. Kontakt is demanding and very flexible, both include huge libraries and I know kontakt has tons of great filters, FX, modulation. It also needs a pretty strong update-which is being dealt with after a year or so.

  • I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    Move iTunes from PC to MAC, http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • What are the physical topology and logical topology in sharepoint

    Hi
    what are the physical topology  and logical topology in sharepoint
    how to define  the physical topology  and logical topology in
    sharepoint
    adil

    Here are the example topologies for SharePoint:
    Traditional - 
    http://www.microsoft.com/en-us/download/details.aspx?id=30377
    Streamlined - 
    http://www.microsoft.com/en-us/download/details.aspx?id=37000
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • What's the implicit joins and how to configure it?

    Hello guys
    what's the implicit joins and how to configure it? What's the purpose of implicit and explicit joins?
    Please help
    Thank you

    Thus, on my side, I think that :
    Explicit join define the join condition between the key column from the table.
    (table1.di = table2.id)
    While
    Implicit Join define :
    * the type of join outer, inner, ...
    http://gerardnico.com/wiki/dw/join/start
    * And the relationship (one-to-many, cardinality)
    http://gerardnico.com/wiki/dw/data_quality/relationships
    And all this information are used to generate the statement (query).
    And I don't really know why you have two type of key :
    * Physical Foreign Keys
    * Logical Foreign Keys
    Regards
    Nico

  • TS4000 What is the "correct" date and time settings for icloud reminders?

    What is the "correct" date and time settings for icloud reminders?

    Sep. 18th. We don't know what time.

  • What is the total weight and dimentions of a Mac Pro with retina 13"? Including any extra delivery packaging (i.e box, bubble rap, etc)? Thx

    What is the total weight and dimentions of a Mac Pro with retina 13" including any extra delivery packaging (i.e box, bubble rap, etc)? Thx

    What is the total weight and dimentions of a Mac Pro with retina 13" including any extra delivery packaging (i.e box, bubble rap, etc)? Thx

  • I am trying to connect my iMac with my MacBook What is the command keys and process in doing so. Have firmwre in place.

    I am trying to connect my iMac with my MacBook What is the command keys and process in doing so. Have firmwre in place.

    Here's the Apple Support article on Target Mode http://support.apple.com/kb/HT1661

  • What does the scriptcollector do and how does it related to jsf lifecycle?

    hi,
    i want to know what does the scriptcollector do and how does it related to jsf lifecycle? and also in the scriptcollector if i call this,
    preRender=#{myBean.onPageLoadBegin}
    postRender=#{myBean.onPageLoadEnd}
    how my page will react?

    The hx:scriptCollector is part of the IBM Faces Client Framework and has nothing to do with Sun JSF RI.
    Lot of the hx components require specific Javascript and those hx components should be placed inside a single hx:scriptCollector which on its turn checks the nested hx components and renders the desired Javascript for it at the end of the tag. Check the HTML source for that Javascript.

Maybe you are looking for