Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. stefanodam78

    Return the current (active) form

    *--- Close Active Window #Define SC_CLOSE 0xF060 #Define WM_SYSCOMMAND 0x112 Declare SHORT PostMessage In user32; INTEGER HWnd,; Integer Msg,; Long wParam,; Long Lparam Declare Integer GetFocus In user32 PostMessage(GetFocus(), WM_SYSCOMMAND...
  2. stefanodam78

    Return the current (active) form

    try this... Local frm frm=.null. DECLARE INTEGER GetFocus IN user32 For each frm in _screen.forms if frm.hwnd=GetFocus() exit endif Endfor
  3. stefanodam78

    Strange datetime() behaviour.

    last modify date of file on filesystem?
  4. stefanodam78

    Resize Borderless form

    A solution of this kind gives me a lot more power... I can handle that part of the form is enabled to control the window and I have no problems with the textbox using the valid (like in my sample, valid check doesn't fire when I click on caption) I can insert vfp controls in my caption, like DWM...
  5. stefanodam78

    Resize Borderless form

    I need create custom caption forms, Win8 style may be an idea... :) My problem with the resize and mousepointer I solved in this way: BorderStyle=0 &&Mousepointer is corrent now (I remove the WS_THICKFRAME code) ... #Define WM_NCLBUTTONDOWN 0x00A1 Bindevent(This.HWnd, WM_NCLBUTTONDOWN...
  6. stefanodam78

    Resize Borderless form

    I solved my problem [thumbsup2] WM_NCLBUTTONDOWN is catched by vfp, I solved the problem by using DefWindowProc. I now have to handle WM_SETCURSOR message... :) Public myForm myForm = Createobject("myForm") myForm.Show Define Class myForm As Form TitleBar=0 BorderStyle=3 x1=0...
  7. stefanodam78

    Resize Borderless form

    Right border must be 11 &&HTRIGHT... sorry ...however it does not work [thumbsdown]
  8. stefanodam78

    Resize Borderless form

    Thank you for your replay Try this... Public myForm myForm = Createobject("myForm") myForm.Show Define Class myForm As Form TitleBar=0 BorderStyle=3 x1=0 y1=0 hOrigProc = 0 Add Object btnClose As CommandButton With Caption="Close" Procedure btnClose.Click()...
  9. stefanodam78

    Resize Borderless form

    Hi, I need to resize a borderless form , I used the bindevent command on WM_NCHITTEST . But the resize does not work properly, it always run the resize bottomright even if I drag one of the edges ... I return the correct value of WM_NCHITTEST but always starts the same resize ... BorderStyle...

Part and Inventory Search

Back
Top