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

Search:

Type: Posts; User: DieterHammer

Page 1 of 6 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    1
    Views
    901

    ownerdrawn Ctabctrl with themes

    I use an ownerdrawn Ctabctrl . In the original version, in
    CMyTabCtrl::DrawItem ,
    there was a
    pDC->FillSolidRect(rect, ::GetSysColor(COLOR_BTNFACE));
    Later when using themes on Windows XP, I...
  2. Re: Filling data in combo box at design time

    Hi,
    how is this data coded in the .rc file?
    I have to translate an existing program to another language. I see every text in the .rc, but the strings in combo-data are repesented as ahex value. Can...
  3. Replies
    1
    Views
    1,037

    Cdialog and CPropertyPage

    I have my own class, dervid from CDialog. I use it for all my dialogs.
    Can I use it anyhow also for Propertypages?
    CpropertyPage ist derived from CDialog, but can I create a CPropertyPage, using my...
  4. Replies
    0
    Views
    721

    CFrameWnd subclass Tooltpctrl

    a CFrameWnd has its builtin Tooltip, I can set its content at TTN_NEEDTEXT.
    But can I subclass this CtooltipCtrl with my own Control?
  5. Replies
    0
    Views
    1,078

    OBM_COMBO with .manifest

    I can use OBM_COMBO for my ownerdrawn controls, to give them a look like the other ones. But if I use .manifest, my ownerdrawn controls still have the old look. Is there a way , to retrieve the...
  6. Replies
    2
    Views
    689

    Make a menu item invisible

    Hi, is it possible, to make a menu item temporary invisible ?
    I want make a menu item sometimes to be invisible, sometimes visible.
    I know, i can gray it, or remove the item, but than I have to...
  7. Replies
    2
    Views
    570

    Re: calling one class from another?

    The best solution, is to split your test in .cpp and .h and include .h in test2.

    Another one is to type the needed prototypes exlicitely into your test2 file.
    (class test blablabla .........)
  8. cprintdialog derived class, Message for changing

    Hi,
    I have a class derived from cprintdialog. I have to change the prompts of my own EDITs, when the user changes printer-values. Which messages have I to catch, to know, if anything (i.e....
  9. Replies
    2
    Views
    1,540

    Re: help! page setup problem

    If I run the example from the 3rd link, it runs without error. But the decvicecontext is always for printer's standard papersize (A4) what's wrong about it?
  10. Re: How to Get the handle of the child dialog ? in VC++

    I expect, you started the child from the parent.

    CChildDlg dlg;

    dlg.DoModal()
    OR
    dlg.create();

    So you can simply call:
    dlg.Memberfunc() from your parent.
  11. Replies
    1
    Views
    741

    Create a printerDC without dialog

    Help! What's wrong wit this code? I only want to get a HDC for a specified printer and a specified papersize, without dialog. But I get always the default paper. I'm trying since days, and it doesn't...
  12. Replies
    3
    Views
    10,087

    Re: Using DEVMODE to set custom paper size.

    Sorry I don't have a solution too. But did you find one?
  13. Replies
    5
    Views
    5,068

    Re: function like SetDeviceCaps

    Thanx to all, shame on me. I found the answer at http://www.codeguru.com/forum/archive/index.php/t-265429.html
  14. Replies
    5
    Views
    5,068

    Re: function like SetDeviceCaps

    Thanx, that's just, what I did. The papersize is changed. But this has no influence to the device caps. And my drawing is clipped at the original margins.
  15. Replies
    5
    Views
    5,068

    Re: function like SetDeviceCaps

    Thank you for the answer.
    But if i change devMode.dmPaperLength before CreatePrinterDC, this has no influence to GetDeviceCaps( VERTSIZE ).

    The devMode.dmPaperLength seems to be the length of...
  16. Replies
    5
    Views
    5,068

    function like SetDeviceCaps

    Hi,
    if I got a DC form a printer, can I change the papersizes, i.e. HORZSIZE ?
  17. Re: how the create an MFC dll that contains CDialog and call it from consule application?

    just create it. What's the problem?

    in your dll:
    void ShowDialog()
    {
    AFX_MANAGE_STATE(AfxGetStaticModuleState());
    // don't forget this!!

    MyDialog dlg;
  18. Re: How can I add more than 255 Control in one dialog box.

    What happens if you create Control No 256?
  19. Replies
    15
    Views
    29,657

    Re: CreateProcess and SetParent

    1000 Thanx! With your code it looks good. I didn't notice any difference between W2000 and XP.
  20. Re: hide my console program..how do i use SW_HIDE ? (newbie on board)

    use FreeConsole()
  21. Replies
    15
    Views
    29,657

    Re: CreateProcess and SetParent

    In the parent application? But I want only one window within the parent application to be "mother" of my child application. The child application is a MDI.
  22. Replies
    15
    Views
    29,657

    I have the same problem

    Hi, I have the same problem, but I have the source for the 2 applications. Is there a solution possible?
    I can't set WS_CHILD for the child application, because then its menu is gone.
  23. Found solution

    Hi,
    It looks like the GlobalAlloc works in adress-space of the calling process.
    I use WM_CopyData to slove myy problem. :thumbd:
  24. inter process communication, global alloc

    Hi, What do I wrong?
    I want to send from one prozess some data to another.

    Sending process:

    member CString m_Parameter; int m_Art;

    ..
    ..
    ...
  25. Replies
    10
    Views
    1,088

    Re: Bug in VC 6 or my bug?

    Hi,
    the wrong sprintf statement is only in my message here, I typed this code only here, to show, something happens. The "blabla" is lot of code and I think i wasn'nt helpfull, to cut and paste it...
Results 1 to 25 of 135
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured