Hi. I want my view support zoom in/out feature, such as Word and Visio, user can set view scale to 400%, 200%, 100%, 50%, etc. Currently I implement this feature by GDI mapping( MM_ANISOTROPIC ), my view contain a workarea and some graphs( bitmap ), I change GDI mapping when user set view zoom. Now the problem is GDI mapping is not good when draw a bitmap, even worse then StretchBlt. what are you think about it? or have better ways to do it.
TianYang
Posts
-
Implement scale view -
Child window can't get focusm_Child is my custom window and it derive from CWnd, this is SDI project, m_Chils is member of my view.
-
Child window can't get focusThe m_child is derive from CWnd, but it can't get focus, the caption of this child window is always gray. m_child.Create( NULL, "OK", WS_VISIBLE | WS_CHILD | WS_CAPTION, rc, this, 100, NULL );
-
How to implement component class in vbI would set my ActiveX class as SafeForScripting and SafeForInitializing. Thank you very much!
-
How to return more then one parameters in web controlI write a control for script, but I can't return more then one parameters: [out] VARIANT param1, [out] VARIANT param2, [out,retval] VARIANT *pret now only one parameter will return well, is that script can't accept method that have more output parameters?
-
Can execute() return both recordset and output parametersI using ADO to execute a stored procedure that will return a recordset and some parameters, but if I get the recordset will cause output parameters to be empty. rs = cmd->Execute( NULL, NULL, NULL ); otherwise, I remove rs then the output parameters will be right. cmd->Execute( NULL, NULL, NULL ); any idea?
-
Get parameter that generated by Refresh()Parameters.Refresh() method created all parameters that are stored process provide. but I can't obtain the value of output parameter after execute. Thank you very much.
-
Return a recordset of ADO.I want return a recordset for script, in c++ this type is _RecordsetPtr, I don't know how to convert it for script variable.
-
Set property by "="How to make my control support set/get property by "=". Thank you very much!
-
Hide cursor withour ShowCursorShowCursor can only hide cursor in caller window, how to hide cursor anywhere?
-
Handle IHTMLElement2 eventsI would like to do something when mouse click on html page, have any good sample to show how to handle element events?
-
How to embedded with IE?I want to get every HTML page when IE load it, any idea? Thank you.
-
Who can give me a Shell32.dll( 5.0 )Notice I means the version 5.0 Shell32.dll.
-
Who can give me a Shell32.dll( 5.0 )Please send it to my email, thank your. qwedcxza0@163.com tianyang@vip.163.com
-
Can't find mfc70.dllAfter install .Net framework, the programme also can't run right( mfc70.dll is not include in framework ). is that other components need install?
-
About socket input queue.We must indicate the size of date when using Recevie() function, but how to peek the data size of input queue? sometimes we don't know what size is that current queue head data.
-
How to resolve "arning MIDL2039"Follow MSDN I modify ocidl.idl but that have not effect.
-
Make programme identify multi-displayMy computer have two VGA adapter ( No.1, No.2 ), set No.1 to the main display, No.2 is free, I want capture the content of No.1, then make some transform and copy to No.2. The puzzle is, how to identify No.2( or No.3, No.4.. ), as far as know the function GetDC( NULL ) can get desktop( main display ) content.
-
Unique COM ObjectThank you!
-
Unique COM ObjectBy default, class factory create a new object for every request, this is not good when a application that should using a COM object as global var. I don't understand ATL deep, so how to modify class factory of special COM object?