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

Search:

Type: Posts; User: aragornx

Search: Search took 0.02 seconds.

  1. Designing structures for different data types with unit convertion support

    I'm trying to design structure that will hold realtime data. Data will be different types - so I want the structure can hold them, eg.


    class RealtimeRecord {
    Tank tank1 = new Tank();
    ...
  2. Re: Blitting scaled content of CRichEditCtrl to screen DC.

    Thanks for answers. I can't change font size for entire control because I need to preserve text format (colours, style and font size also). I solve my problem using enhanced-format metafile for...
  3. Blitting scaled content of CRichEditCtrl to screen DC.

    Hi, I need to render content of CRichEditCtrl on device context of some CWnd. This code works ok:


    CDC *dc = wnd->GetDC();
    CRect cr;
    wnd->GetClientRect( &cr );
    dc->Rectangle(cr);
    ...
  4. Replies
    1
    Views
    647

    Class templates and STL Containers

    Hi - I have some design problem. I made my Template Class:


    class CParam : CParamI {
    public:

    T operator=( T val ) {
    value = val;
    return value;
    }
  5. Replies
    1
    Views
    1,130

    Problem with printing, scaling, dpi

    Hi - I have some problems with printing. I made simple report, that needs to be printed. Everything was ok till I changed the printer - the printout doesn't fit the paper it's twice bigger. I have a...
  6. Replies
    4
    Views
    2,302

    Re: Creating topmost control on cdialog

    My problem still exist. Above solutions didnt'work. I tried with

    lista.CreateEx( WS_EX_TOPMOST | WS_EX_TOOLWINDOW | WS_EX_STATICEDGE, _T("LISTBOX"), NULL, WS_CHILD | LBS_STANDARD | WS_HSCROLL |...
  7. Replies
    1
    Views
    1,156

    Posting messages between threads

    Hi, I post my problem in Slow Chat thread http://www.codeguru.com/forum/showthread.php?t=496443. Thank you for all your answers. As MikeAThon wrote - that I can't block InitInstance function of...
  8. Re: How to manage user messege sent by PostThreadMessage

    but doesn't it block my main loop ?
  9. Re: How to manage user messege sent by PostThreadMessage

    about AfxEndThread - http://msdn.microsoft.com/en-us/library/s96hway2%28VS.80%29.aspx
    "Must be called from within the thread to be terminated." - so I used it.
    and about message loop - do I need to...
  10. How to manage user messege sent by PostThreadMessage

    Hi - I have problem with receiving a message sent by PostThreadMessage. I'm posting message from main application class (CWinApp). I'm posting it to my class derived from CWinThread. Part of my...
  11. Re: How can I have seperate icons for both the CMFCMenuBar and the CMFCToolBar?

    Hi, I have similar problem. I've tried to use your solution - but I cannot set bitmaps for menu items. I made toolbar for my menu. I set the same IDs for menu items and toolbar items and there are...
  12. Replies
    4
    Views
    2,302

    Creating topmost control on cdialog

    Hi
    I'm creating my own control. I dynamically creating CListBox over the other controls - it's my combo list control. My problem is that controls from behind my CListBox (eg. CEdit controls)...
  13. Re: Problems with modal dialog and PreTranslateMessage

    My application is MDI. I need to react on function keys F1-F12 but not in every window separately - but globally in application. I think that WM_KEYUP/DOWN/PRESSED working only on controls that have...
  14. Problems with modal dialog and PreTranslateMessage

    I've got a problem with displaying modal dialog after key pressing. I'm doing it in thath way: first any key pressing is receiving in PreTranslateMessage function. Then i'm sending new user message...
  15. Replies
    5
    Views
    1,524

    Re: BerkeleyDB and Visual C++ .NET 2005 problem

    It is Visual C++ 2005 Windows Application MFC Project...
  16. Replies
    5
    Views
    1,524

    Re: BerkeleyDB and Visual C++ .NET 2005 problem

    In fact, after my changes it works until db.open. Now I have linker error:

    error LNK2019: unresolved external symbol "public: virtual int __thiscall Db::open(class DbTxn *,char const *,char const...
  17. Replies
    5
    Views
    1,524

    Re: BerkeleyDB and Visual C++ .NET 2005 problem

    I found solution:

    #define DBTYPE BDBTYPE
    #undef DB_UNKNOWN
    #include <db_cxx.h>
    #undef DBTYPE

    but I don't if it is correct ??
  18. Replies
    5
    Views
    1,524

    BerkeleyDB and Visual C++ .NET 2005 problem

    Hi
    I've just downloaded and installed the most new version of Oracle BerkeleyDB (msi packet). No I'm trying to include <db_cxx.h> header file in my project (after set correct folders for includes...
  19. Replies
    5
    Views
    1,556

    Re: Blinking effect in Cwnd child window

    Hi - thanx for yours answers...

    "Why is the parent of your child window not the view but its frame window? Or by saying view's frame you don't mean the frame but the view window?"

    - i thought...
  20. Replies
    5
    Views
    1,556

    Re: Blinking effect in Cwnd child window

    It didn't help... The unwanted effect is that the background window(parent) is in one moment (0.001sec ;) ) drawn over the child window...
  21. Replies
    5
    Views
    1,556

    Blinking effect in Cwnd child window

    Hello
    I've got problem with blinking window. My application is multi-doc one. One of my view is simple CView with drawing code in OnPaint. This view is repainting every second (when new data is...
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured