Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Cambalinho

Page 1 of 40 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    6
    Views
    311

    Re: why my image don't return HBITMAP?

    i'm sorry Igor Vartanov, are you tell me that my code or what i need is confused? i must elaborate more about it?
  2. Replies
    6
    Views
    311

    Re: why my image don't return HBITMAP?

    true but i fixed that. now see these function on my Menu class:

    void bitmap(const image &imgImage)
    {
    //assignment imgImage to imgMenu
    imgMenu=imgImage;
    ...
  3. Replies
    4
    Views
    413

    Re: how use the printer?

    seems now that i have the problem resolved:

    long ConvertPixelsToTwips(long *x, long *y)
    {
    long RetVal;

    const int LogPixelsX = 88;
    const int LogPixelsY = 90;
    const int...
  4. Replies
    4
    Views
    413

    Re: how use the printer?

    honestly i'm very confused....
    "if you don't change anything, then the printer is set to MM_TEXT mapping mode, which means your coordinates are printer pixel coordinates since printers are...
  5. Replies
    4
    Views
    413

    how use the printer?

    i'm trying print a window DC, but seems that i mistake on scale mode between HDC(pixels) and printer(?):(

    void print()
    {
    //getting the default printer name
    char...
  6. Replies
    6
    Views
    311

    why my image don't return HBITMAP?

    heres my BitmapDC and MemoryDC class's:

    class MemoryDC
    {
    private:
    HDC memoryDC;

    public:
    MemoryDC ()
    {
  7. Replies
    1
    Views
    961

    Re: how using DIB's?

    that line it's corrected now, but seems not working :(

    COLORREF GetDIBPixel(HDC hdcImage, long posX, long posY, HDC destination)
    {
    //get the bitmap from HDC and HDC dimensions
    BITMAP...
  8. Replies
    1
    Views
    961

    how using DIB's?

    i'm trying use the GetDIBits() and StretchDIBits() for create functions more faster than GetPixel() and SetPixel().

    COLORREF GetDIBPixel(HDC hdcImage, long posX, long posY)
    {
    //get the...
  9. Re: [win32] - avoid flicker and do a correct redraw

    don't be mad with me. i was trying.... and we fix it ;)
  10. Re: [win32] - avoid flicker and do a correct redraw

    finally i came with 1 thot. i did 1 temp image for draw the background with image in scroll way:

    case WM_ERASEBKGND:
    {
    return TRUE;
    }
    ...
  11. Re: [win32] - avoid flicker and do a correct redraw

    now see these code:

    case WM_ERASEBKGND:
    {
    return TRUE;
    }
    break;

    case WM_PAINT:
    {
  12. Re: [win32] - avoid flicker and do a correct redraw

    case WM_PAINT:
    {
    PAINTSTRUCT ps;
    BeginPaint(inst->hwnd, &ps);

    //draw a background on inst->imgForm
    ...
  13. Re: [win32] - avoid flicker and do a correct redraw

    i fix another flicker. but see these code:

    case WM_ERASEBKGND:
    {
    return TRUE;
    }
    break;

    case WM_PAINT:
    ...
  14. Re: [win32] - avoid flicker and do a correct redraw

    Igor sorry if i make you think on that way. i hear everyone. i'm trying to understand more.
    finally i understand why the WS_EX_COMPOSITED was not working.... for avoid a flicker i must do:

    1...
  15. Re: [win32] - avoid flicker and do a correct redraw

    by some reason i can't put the WS_EX_COMPOSITED working :(
    but see these: the Invalidate() TRUE or FALSE(for clean the background or not) redraw the entire window inclued the child controls make...
  16. Re: [win32] - avoid flicker and do a correct redraw

    anotherthing: if the windows(parent window) is too big i will get flickers :(
    can you give me more information, please?
    yes i use a timer animation for refresh the window
  17. Re: how calculate nPos when we resize the window?

    someone, before, told me that, when the parent is resized, that only the nPage is changed. so thinking on that, more, i change more the code and now works fine:

    void setAutoScroll(bool autoscroll)...
  18. Re: how calculate nPos when we resize the window?

    see these image:
    33775
    the GetClientWindowSize() function see where is the button for give me it's bottom value(scroll dimentions).
    then from return values, i show the scrollbars and give them the...
  19. Re: how calculate nPos when we resize the window?

    imagine that you have a child control with a position more big than window client size... for calculate that, i use the GetClientWindowSize() function. the rest is for show me scrollbars and give...
  20. Re: how calculate nPos when we resize the window?

    but if i'm, for example, on half of the scrollbar, i lose the nMax :(

    void setAutoScroll(bool autoscroll)
    {
    blnAutoScroll=autoscroll;
    ...
  21. Re: how calculate nPos when we resize the window?

    nPos, nPage and the nMax are CROLLINFO structure members except the 'X', that was for a sample nothing more
  22. [RESOLVED] how calculate nPos when we resize the window?

    the nPos is X. now i resize the window. the nPage and the nMax must be changed. until here it's fine. but how can i calculate, now, the new nPos depending on X?
    (i don't know do these calculation)
  23. Re: win32 - how scrooling a window?

    thanks to all.
    knowing what is nPage(client size) and nMax(scroll area size) and debugging the thumbposition, i found the problems.
    seems, when we do:

    nPos + newvalue >=nMax
    that the...
  24. Re: win32 - how scrooling a window?

    finally i understand better:

    Max is usually the complete needed size for the graphics/text.
    Page is usually the client window size.
    but when i use the SB_PAGEDOWN or SB_PAGEUP: i calculate in...
  25. Re: win32 - how scrooling a window?

    i'm trying calculate the nMax and nPage. your debug way works. but how can i test 1 value, if i don't know calculate?
    and seems that the nPage and nMax are dependents :(
Results 1 to 25 of 977
Page 1 of 40 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center