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.

visual c++ - Problems with refreshing a draggable MFC window -


greetings.

i have make draggable mfc dialog window, has background - used that: http://www.codeproject.com/kb/graphics/picturewindow.aspx - , has several picturebox controls. have tried 2 approaches, , while work, have problems.

first approach "manual" - on lbuttondown message check if it;s on clean area of window, , set flag variable. on mousemove, flag checked , if it's set, movewindow function called, , then, invalidate(1). on lbuttonup, flag unset. approach works correctly , redraws needed, somehow slow - if i'm moving cursor fast, window falls behing , isn't dragged, cursor's not on window anymore.

the second approach "automatic" - call

defwindowproc(wm_syscommand, sc_move+2,makelparam(point.x,point.y));

on lbuttondown, , handles rest, it's quick , never fall behind, when drag on screen's edge ( part of window gets invisible), when drag back, controls invisible , not refreshed, background okay. suppose that's because invalidate() isn't called during movement way, call after calling defwindowproc() , so, refreshed when depress button.

what should improve either of solutions? need both fast , correct. may have not provided required information, i'll add need arise.

thanks in advance.

solved problem, modifying second way. added total redraw onpaint(), , rid of flicker, redraw durng dragging, using flag variable.


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 -