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

Search:

Type: Posts; User: olekba

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    377

    Re: Window always look like active

    I found a answer. Maybe someone will look at same problem, so here it is:

    Set a hook for control a messages:

    HwndSource source = PresentationSource.FromVisual(this) as HwndSource;
    ...
  2. Replies
    1
    Views
    377

    Window always look like active

    Hi,

    I have my c# application, base on WPF window. I need one not typical action: if window is not active in a OS, border should still look like active.

    Any sugestions ?

    THNX in advance
    Olek
  3. Replies
    2
    Views
    688

    Re: How get a TabCtrl page color

    This is not a solution. Independet what are a applicaction setting, this function always return same color. If you compile as dblbyte this will be right, but if you complile as unicode - not (at this...
  4. Replies
    2
    Views
    688

    How get a TabCtrl page color

    Hi,

    TabCtrl have a different color with MFC, base on i.e. application and system settings (i.e. base on character set - unicode or dblbyte).

    I need to get at a runtime a current color for this...
  5. Replies
    9
    Views
    1,432

    Re: P/Invoke and strings callback problem

    THNX DARWEN ! This is it. Also thnx for rest, what try to help me.

    For future analizers, source in unmanage part shoud look like:


    static const void(__stdcall...
  6. Replies
    9
    Views
    1,432

    Re: P/Invoke and strings callback problem

    I solve it like that, that callback function is without parameters and text is get from a buffer from not manage part in additional function (called under callback by manage part).

    But if someone...
  7. Replies
    9
    Views
    1,432

    Re: P/Invoke and strings callback problem

    static const void (*InterfaceGroupEventCallback)(char*);

    I tested it like that, directly after previous sugestion, but this not help.

    But stay with this same "void" but without string parameter...
  8. Replies
    9
    Views
    1,432

    Re: P/Invoke and strings callback problem

    I't not a problem with a return type. This is standard way, how this is declarate (static pointer to function in c++). Problem is with a string conversion. If I modify it, that char* parameter not...
  9. Replies
    9
    Views
    1,432

    P/Invoke and strings callback problem

    Hi All,

    I have a problem with found a bug here. Maybe someone can help me. From c# I call a c++ function (in dll via P/Invoke). One function give a handle form manage code to a unmanage code. Next...
  10. Replies
    1
    Views
    542

    Any alternative to activex

    Hi,

    I have a application, where I integrating a mfc control in c# application. This mfc control base in a ActiveX solution. This is double side comunication and MFC manage a main screen (drawing...
  11. Replies
    10
    Views
    6,054

    Re: c# form size change problem

    I found a solution myself:

    SetStyle(ControlStyles.ResizeRedraw , true);

    But I still have same problem when a form is AutoScroll. At this case is making simmilare paint optimalisation under form...
  12. Replies
    10
    Views
    6,054

    c# form size change problem

    Hi All !

    I wrote a easy program: one standard form. Next I define a paint method for this form:


    bool cl = true;
    private void Form1_Paint(object sender, PaintEventArgs e)
    {...
  13. Replies
    1
    Views
    510

    ActiveX - add custom method problem

    Hi All !

    I have very stupid problem. After long time I back to ActiveX programing. I try create a easy ActiveX control with mfc what will have a one public method, visible from container. Last...
  14. Replies
    4
    Views
    993

    Re: Destroy toolbar problem

    In reality, I extract this, what generate a problem, to another project. And this is in a first post. Here you can find, that this is normal CToolBar.


    I try several thinks for destroy this GDI...
  15. Replies
    4
    Views
    993

    Re: Destroy toolbar problem

    Unfortuality: This is first what I try. Result is this same: GDI object are not free....
  16. Replies
    4
    Views
    993

    Destroy toolbar problem

    Hi !

    I'm creating a toolbar i.e. like this:


    bar=new CToolBar();
    bar->CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
    | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY |...
  17. Thread: windows textes

    by olekba
    Replies
    2
    Views
    398

    windows textes

    How to get from mfc program a system textes in current lanuage like "yes" "no" ??


    thnx in advance
  18. Replies
    6
    Views
    558

    Re: Problem with change a toolbar main label

    VictroN solution work !!! THNX Very Much
  19. Replies
    6
    Views
    558

    Problem with change a toolbar main label

    Hi All !

    I want to change a text what is visible in toolbar when is flyable (this in toolbar label). So I call a method:


    m_wndToolBar.SetWindowText("Ala ma kota");

    But this not efect. I...
  20. Replies
    0
    Views
    1,388

    Cl_excepcion_final_funcion

    Hi !

    I have in my application in Debug window several infos like this:

    CL_EXCEPCION_FINAL_FUNCION

    but I can't find any informations what's this....... No in code curu, no in internet....
    ...
  21. Thread: C#.NET and mfc

    by olekba
    Replies
    0
    Views
    310

    C#.NET and mfc

    Hi !

    One small question.
    I know that I can call unmanage code in .dll from manage .exe

    Is it mossible to call from unmagange .exe (mfc7.1) a function form manage .dll (.Net Framework C#)? If...
  22. Replies
    6
    Views
    1,681

    Re: Modal dialog and outside mouse control

    I have in my application modal dialog. My costumer in his program close a dialogs by click right button in this dialog or out of dialog, but his dialogs are not modal, so he just check if in any...
  23. Replies
    6
    Views
    1,681

    Re: Modal dialog and outside mouse control

    Idea 1)
    WM_NCHITTEST is not call for outside of modal dialog

    Idea 2)
    ::SetWindowsHookEx(..) with WH_MOUSE - is exacly this same problem. I can detect all WM_RBUTTONDOWN in whole application...
  24. Replies
    6
    Views
    1,681

    Modal dialog and outside mouse control

    Hi All ! :wave:

    I'm creating normal CDialog and show it by DoModal(). Problem is that I need to know if user click rigth mouse button OUT of this dialog.

    I try with SetCapture(). This is...
  25. Thread: CMenu problem

    by olekba
    Replies
    4
    Views
    437

    Re: CMenu problem

    Mike Harnad is right ! If I move it to mainframe all work super (hera was another one bug, so my preview post was wrong).

    All items (without separator ;) ) have this same width now.

    THNX A LOT...
Results 1 to 25 of 90
Page 1 of 4 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center