Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

winapi - Cursor flashing on the non-client area when using IDirect3DDevice9::SetCursorProperties -


i have application running under direct3d9. application using direct3d hw cursor api (idirect3ddevice9::setcursorproperties et al.) control cursor. works fine:

  • when inside of application window, cursor specified setcursorproperties shown
  • when outside of application window, normal os cursor displayed needed desktop or other windows

the problem non-client area of window (the title bar, screen edges). when moving in non-client area, cursor corresponding function of area breifly shown, once stop moving, cursor set in setcursorproperties shown again.

what correct way use idirect3ddevice9::setcursorproperties default os cursors on window non-client area?

after experimenting various things, following change in application has solved issue me:

  • in window procedure, when wm_setcursor received, remember result of condition (lparam&0xffff)==htclient in global variable cursorinclient
  • when global variable cursorinclient false, avoid calling idirect3ddevice9::showcursor

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -