Search found 45 matches: wparam

Return to advanced search

Re: Window transition event

... in the application's main window procedure. This message indicates window activation changes (activating/deactivating). Combine with the LOWORD of wParam to check the activation state (e.g., WA_INACTIVE for background). You may need to inherit a Class TMyWindow from TWindow and implement support ...
by Antonio Linares
Fri Mar 15, 2024 3:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Window transition event
Replies: 2
Views: 499

Re: Small Question about Word and FWH

... Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageW" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As IntPtr, ByRef lParam As CopyDataStruct) As IntPtr In your code, call the CheckJWordDocumentState() method before closing Application 2 or ...
by Antonio Linares
Mon Jul 17, 2023 9:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Small Question about Word and FWH
Replies: 29
Views: 1149

Re: HB_FUNC() : wParam, lParam = 0,0 for Macro

hi Enrico,

Enrico Maria Giordano wrote:This is not tied to a particular compiler, this is the normal C cast (conversion to type).

i talk about Macro which "might" make Problem so HMG use SendMessage() which also work under FiveWin BCC / MSVC
by Jimmy
Sun Nov 06, 2022 2:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HB_FUNC() : wParam, lParam = 0,0 for Macro
Replies: 5
Views: 304

Re: HB_FUNC() : wParam, lParam = 0,0 for Macro

Jimmy wrote:
Code: Select all  Expand view
  SendMessage ( hWnd, LVM_*, (WPARAM) x, (LPARAM) y)


This is not tied to a particular compiler, this is the normal C cast (conversion to type).
by Enrico Maria Giordano
Sun Nov 06, 2022 1:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HB_FUNC() : wParam, lParam = 0,0 for Macro
Replies: 5
Views: 304

Re: HB_FUNC() : wParam, lParam = 0,0 for Macro

... Macro :roll: --- in HMG Source i found some AVOID_COMPILER_WARNING when using Listview Macro HMG use   SendMessage ( hWnd, LVM_*, (WPARAM) x, (LPARAM) y) instead which is like my Xbase++ Style using Ot4XB LIB not sure if it belong to MinGW Compiler or also BCC / ...
by Jimmy
Sun Nov 06, 2022 1:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HB_FUNC() : wParam, lParam = 0,0 for Macro
Replies: 5
Views: 304

HB_FUNC() : wParam, lParam = 0,0 for Macro

hi, i try to use wParam, lParam = 0,0 as descript here https://learn.microsoft.com/en-us/windows/win32/controls/lvm-getselectedcount wParam Must be zero. lParam Must be zero.   hb_retni( ListView_GetSelectedCount(hWnd,0,0) ...
by Jimmy
Sun Nov 06, 2022 12:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HB_FUNC() : wParam, lParam = 0,0 for Macro
Replies: 5
Views: 304

Re: Printing RTF using CreateTextServices()

... not RTF. I have placed a question in StackOverflow: https://stackoverflow.com/questions/71005308/ptextservices-txsendmessage-em-streamin-wparam-sf-rtf-lparam-editst
by Antonio Linares
Sun Feb 06, 2022 10:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing RTF using CreateTextServices()
Replies: 6
Views: 641

Re: evaluar algo de harbour en c.

... ) ); if( pSymbol ) { hb_vmPushSymbol( pSymbol ); hb_vmPushNil(); hb_vmPushNumInt( ( LONG_PTR ) hButton ); hb_vmPushLong( Msg ); hb_vmPushNumInt( wParam ); hb_vmPushNumInt( lParam ); hb_vmDo( 4 ); } */
by carlos vargas
Thu Dec 06, 2018 11:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: evaluar algo de harbour en c.
Replies: 7
Views: 1267

Re: HBComm para harbour 1.0.1

WM_COMMNOTIFY (3.1) WM_COMMNOTIFY idDevice = wParam; /* communication-device ID */ nNotifyStatus = LOWORD(lParam); /* notification-status flag */ The WM_COMMNOTIFY message is posted by a communication device driver whenever a COM port event occurs. ...
by Antonio Linares
Wed Aug 19, 2015 8:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: HBComm para harbour 1.0.1
Replies: 6
Views: 791

Re: Also for Listview

... i, iSubItem_, pszText_) \ { LV_ITEM _ms_lvi;\ _ms_lvi.iSubItem = iSubItem_;\ _ms_lvi.pszText = pszText_;\ SNDMSG((hwndLV), LVM_SETITEMTEXT, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_ms_lvi);\ } Also there is a function to allow inline editing: #define ListView_EditLabel(hwndLV, i) \ (HWND)SNDMSG((hwndLV), ...
by Antonio Linares
Thu Jun 18, 2015 5:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Also for Listview
Replies: 29
Views: 5051

Re: Also for Listview

To delete an item we can use:

#define LVM_DELETEITEM (LVM_FIRST + 8)
#define ListView_DeleteItem(hwnd, i) \
(BOOL)SNDMSG((hwnd), LVM_DELETEITEM, (WPARAM)(int)(i), 0L)
by Antonio Linares
Thu Jun 18, 2015 5:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Also for Listview
Replies: 29
Views: 5051

Tengo un mensqje de error en bcc582

... PSNRET_MESSAGEHANDLED 3 #define PSM_SETCURSEL (WM_USER + 101) #define PropSheet_SetCurSel(hDlg, hpage, index) \ SNDMSG(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage) #define PSM_REMOVEPAGE (WM_USER + 102) #define PropSheet_RemovePage(hDlg, index, hpage) \ SNDMSG(hDlg, PSM_REMOVEPAGE, ...
by Armando Picon
Thu Aug 14, 2014 12:08 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Tengo un mensqje de error en bcc582
Replies: 2
Views: 1556

Re: Progress Bars, no funciona correctamente.

... ),;          ::nMin := nMin, ::nMax := nMax cb es lo que mide un fichero Luego se establece el Step (paso): SendMessage(hwndPB, PBM_SETSTEP, (WPARAM) 1, 0); En FWH:   METHOD SetStep( nStepInc ) INLINE ;          SendMessage( ::hWnd, PBM_SETSTEP, ::nStep := nStepInc ) y desde ...
by Antonio Linares
Tue Jul 22, 2014 7:07 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Progress Bars, no funciona correctamente (Solucionado)
Replies: 27
Views: 5487
Next

Return to advanced search