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

Search:

Type: Posts; User: Caprice

Page 1 of 8 1 2 3 4

Search: Search took 0.06 seconds.

  1. Of course, it's correct. And here is the error: ...

    Of course, it's correct. And here is the error:

    HDC hDC = ::GetDC(hWnd);
    HDC hMemDC = ::CreateCompatibleDC(hDC);
    HBITMAP hBitmap = ::CreateCompatibleBitmap(hMemDC, 32, 32);

    I cannot explain...
  2. look this function GetBitmapBits. For Windows...

    look this function GetBitmapBits. For Windows 2000 it works.
  3. Thread: PDA program

    by Caprice
    Replies
    3
    Views
    938

    Firstly you need to be sure that you send...

    Firstly you need to be sure that you send something and receive something. You can put AfxMessageBox(TEXT("Received")); if ReadFile returns TRUE.
    The code I wrote in the previous message will show...
  4. Thread: PDA program

    by Caprice
    Replies
    3
    Views
    938

    Are you sure about this line: szPortName1 =...

    Are you sure about this line:
    szPortName1 = "COM2:";

    Maybe it's :
    szPortName = TEXT("COM2:");

    And loop in void CSENDDlg::OnButton1() looks very strange:
    1. how to stop it?
    2. you put a...
  5. Replies
    2
    Views
    4,125

    But where you test your application? If it is an...

    But where you test your application? If it is an emulator so you need to put your pictures in its folder. If you have a PDA, so copy the application and the picture into \\Windows\StartMenu, for...
  6. Replies
    3
    Views
    1,091

    I think you can find an SDK for this Toshiba. I'm...

    I think you can find an SDK for this Toshiba. I'm not sure but I think EVC4 already has an ARMV4.
  7. Replies
    2
    Views
    1,564

    Perhaps, I don't know how to use such functions...

    Perhaps, I don't know how to use such functions correctly. So I prefer to use events when I need to suspend a thread. The thread is a loop with WaitForMultipleObjects.
  8. Thread: Help in bitmap

    by Caprice
    Replies
    3
    Views
    736

    I think you're talking about GetBitmapBits...

    I think you're talking about GetBitmapBits function.

    Example:
    BITMAP bitmap = { 0 };
    ::GetObject(hBitmap, sizeof(BITMAP), &bitmap);

    int nSize = ((((bitmap.bmWidth * bitmap.bmBitsPixel) + 31)...
  9. Replies
    7
    Views
    5,748

    I don't know what is this the ICE or how you...

    I don't know what is this the ICE or how you called it and I'm not sure that I understand what is this the DOS application but I can try to answer you. I think there is no problem with Win32 Serial...
  10. Replies
    3
    Views
    1,340

    If all previous answers did not help, try to...

    If all previous answers did not help, try to remove your static picture control and draw the bitmaps directly on the window HDC. This way always works. Especialy on WinCE. If it's difficult for you,...
  11. Send a message. For example: ... #define...

    Send a message. For example:
    ...
    #define WM_NEWTEXT WM_USER + 51
    ...

    From the first dialog:
    ::SendMessage(hSecondDlg, WM_NEWTEXT, (WPARAM)szBuffer, (LPARAM)nSize);

    and inf the second dialog...
  12. Replies
    4
    Views
    5,038

    The width and the height you can get from the...

    The width and the height you can get from the window. Obviously somewhere you wrote something like HDC hDC = ::GetDC(m_hWnd);
  13. Replies
    3
    Views
    1,137

    I found a function: SHSetAppKeyAssoc. It works...

    I found a function: SHSetAppKeyAssoc.
    It works exactly as I wanted.
    I saw this arcticle (with undocumented function). I don't know why somebody needs it. Do you have any idea?
  14. Replies
    3
    Views
    1,137

    Did you solve this problem ? I thought the...

    Did you solve this problem ?
    I thought the buttons are hot keys and I can use RegisterHotKey and that will work like it written in MSDN. I was mistaken.
    So can you tell me what to do?
  15. Replies
    2
    Views
    2,485

    I tried it for the lict control and that worked:...

    I tried it for the lict control and that worked:
    ImageList_AddMasked(hImageList, hBitmap, clrTransparent)

    The image list was created so:
    HIMAGELIST hImages = ImageList_Create(16, 16, ...
  16. Thread: Performace

    by Caprice
    Replies
    3
    Views
    697

    What about GetTickCount or GetSystemTime...

    What about GetTickCount or GetSystemTime functions?
  17. maybe we can help you without downloading? 1....

    maybe we can help you without downloading?
    1. From my point of view you can use only one view and put on it all controls you need and your button will hide part of them and show other part.
    2. What...
  18. Replies
    2
    Views
    816

    WOW! It's too complicated. 1. The button...

    WOW! It's too complicated.
    1. The button belongs to the first dialog and the dialog has somethig like OnButton function where you wrote int nRet = dlg2.DoModal(). If it is correct you can write...
  19. Replies
    3
    Views
    916

    BOOL SelectFileName(LPCTSTR lpctstrInitFileName,...

    BOOL SelectFileName(LPCTSTR lpctstrInitFileName, LPTSTR lptstrSelectedFileName, DWORD dwCapacity)
    {
    BOOL bOut = ((lptstrSelectedFileName != NULL) && (dwCapacity > 0));
    if (bOut)
    {...
  20. Thread: Enum Question

    by Caprice
    Replies
    4
    Views
    963

    Try this:...

    Try this:
    m_LanguageFile.open(m_CSettings->GetSetting(CSettings::LanguagePath), ios::out);
  21. You're asking where you can find different visual...

    You're asking where you can find different visual controls for Window CE ?
  22. Take a look: ...

    Take a look:

    http://www.pocketpcdn.com/index.html
    http://www.pocketpcdn.com/forum/index.php

    and codeguru and developer.com of course.

    :) I'm trying to remove MFC from the projects for...
  23. Replies
    5
    Views
    929

    What I know about it you can remove the caption -...

    What I know about it you can remove the caption - that's the window style you can remove it using ModifyStyle function. Or if you like the caption :) you can play with WM_SIZE or better with...
  24. Replies
    1
    Views
    585

    If you're talking about standard application...

    If you're talking about standard application projects in MFC (or WTL), you can
    1. create SDI application and on the last page of the wizard you can set CFormView as a base class for your view...
  25. Replies
    6
    Views
    1,388

    A! About MFC.. class CYourEditBox: public...

    A!
    About MFC..
    class CYourEditBox: public CEdit
    {
    ...
    }

    will work.
Results 1 to 25 of 182
Page 1 of 8 1 2 3 4





Click Here to Expand Forum to Full Width

Featured