Type: Posts; User: olekba
Search took 0.01 seconds.
October 26th, 2012, 06:14 AM
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;
October 26th, 2012, 03:47 AM
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
August 27th, 2010, 04:30 AM
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...
August 24th, 2010, 02:00 AM
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...
August 24th, 2009, 09:54 AM
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...
August 24th, 2009, 08:01 AM
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...
August 24th, 2009, 07:52 AM
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...
August 24th, 2009, 06:26 AM
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...
August 24th, 2009, 05:13 AM
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...
June 18th, 2009, 11:08 PM
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...
December 17th, 2008, 03:58 AM
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...
December 17th, 2008, 03:08 AM
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)
October 2nd, 2007, 03:32 AM
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...
September 28th, 2006, 02:08 AM
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...
September 27th, 2006, 04:53 AM
Unfortuality: This is first what I try. Result is this same: GDI object are not free....
September 27th, 2006, 02:49 AM
I'm creating a toolbar i.e. like this:
bar->CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY |...
January 23rd, 2006, 03:53 AM
How to get from mfc program a system textes in current lanuage like "yes" "no" ??
thnx in advance
September 21st, 2005, 11:41 AM
VictroN solution work !!! THNX Very Much
September 21st, 2005, 09:27 AM
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...
August 4th, 2005, 09:03 AM
I have in my application in Debug window several infos like this:
but I can't find any informations what's this....... No in code curu, no in internet....
August 3rd, 2005, 07:32 AM
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...
July 27th, 2005, 04:01 AM
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...
July 27th, 2005, 03:35 AM
WM_NCHITTEST is not call for outside of modal dialog
::SetWindowsHookEx(..) with WH_MOUSE - is exacly this same problem. I can detect all WM_RBUTTONDOWN in whole application...
July 27th, 2005, 02:39 AM
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...
June 18th, 2005, 01:08 AM
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...
Click Here to Expand Forum to Full Width