Search found 16 matches: hwndparent

Return to advanced search

HTML code in a TPanel class

... the network. So far, I have only taken a window as a control to embed it. I have looked at the TWebView class, and it is that all controls can use hWndParent. The WebView2 control can run inside a window control like a Tpanel in a Windows application. METHOD New(nDebug, hWndParent) Here is a very ...
by Otto
Sat Jan 20, 2024 4:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HTML code in a TPanel class
Replies: 9
Views: 1373

Re: WebView2 Essentials: Guides, Tips & Resources

... Data Members: hWebView: Handle to the web view control. bOnBind: A flag or callback related to binding JavaScript functions. Methods: New(nDebug, hWndParent): Constructor that creates a new web view instance. It takes debug settings and a parent window handle as arguments. Navigate(cURL): Navigates ...
by Otto
Wed Jan 10, 2024 7:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WebView2 Essentials: Guides, Tips & Resources
Replies: 2
Views: 485

Re: IE

You have to supply 0, 0 to WebView_Create(). It does not work using params there

But you can make it child of any other window using SetParent( webview_get_window( hWebView ), hWndParent )
by Antonio Linares
Mon Jun 06, 2022 6:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: IE
Replies: 39
Views: 1765

Re: IE

... )'>Call FWH app from web browser</button> </body> </html> ENDTEXT return cHtml DLL FUNCTION WEBVIEW_CREATE( nDebug AS LONG, hWndParent AS LONG ) AS LONG PASCAL FROM "webview_create" LIB hDLL DLL FUNCTION WEBVIEW_RUN( hWebView AS LONG ) AS VOID PASCAL FROM "webview_run" ...
by Natter
Thu May 26, 2022 12:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: IE
Replies: 39
Views: 1765

Re: Using WebView with Borland !!!

Enhanced version and important fixed bug thanks to Cristobal: We had a missing @ here: DLL FUNCTION WEBVIEW_CREATE( nDebug AS LONG, @hWndParent AS LONG ) AS LONG PASCAL FROM "webview_create" LIB hDLL You can use DEFINE WINDOW or DEFINE DIALOG as you may need, or simply place it ...
by Antonio Linares
Wed Feb 16, 2022 3:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using WebView with Borland !!!
Replies: 91
Views: 7910

Re: Using WebView with Borland !!!

... Sólo lo hemos probado con Harbour por el momento > * Se puede incrustar dentro de cualquier control? Si, usando SetParent( hWndWebView, hWndParent )
by Antonio Linares
Thu Feb 03, 2022 10:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using WebView with Borland !!!
Replies: 91
Views: 7910

Tengo un mensqje de error en bcc582

... CCSIZEOF_STRUCT(PROPSHEETHEADERW, DUMMYUNION5_MEMBER(hbmHeader)) typedef struct _PROPSHEETHEADERA { DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCSTR pszIcon; } DUMMYUNIONNAME; LPCSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCSTR ...
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: 1568

Re: "Snap" for Clipper

...              WINDOW.PRG      670   670 HWNDGETFOCUS            WINDOW.PRG      684  3465  3479 HWNDPALCHG              WINDOW.PRG      733   733 HWNDPARENT              WINDOW.PRG      173  3550  3570  3666  3674 HWNDSENDER              WINDOW.PRG      541   541   543   545   546   548   548 ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6716

Re: CtrlDrawFocus

... = pt.y ; //+ GetSystemMetrics( SM_CYCAPTION ) + GetSystemMetrics( SM_CYSIZEFRAME ); // - 5; pt.x = rct.right; pt.y = rct.bottom; ScreenToClient( hWndParent, &pt ); rct.right = pt.x; // + 8; rct.bottom = pt.y; // + GetSystemMetrics( SM_CYCAPTION ) + 8; Lo que no pude hacer es adaptar CtrlDrawFocus() ...
by César E. Lozada
Fri Feb 13, 2009 1:47 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: CtrlDrawFocus
Replies: 4
Views: 658

... a continuación: HB_FUNC( PARENTIMG ) // ParentImg( HWND hWnd, HDC hDC ) { HWND hWnd = ( HWND ) _parnl( 1 ) ; HDC hDC = ( HDC ) _parnl( 2 ) ; HWND hWndParent = GetParent( hWnd ) ; HDC hDcParent = GetDCEx( hWndParent, NULL, DCX_PARENTCLIP ) ; RECT rct ; POINT pt ; GetWindowRect( hWnd, &rct ) ...
by antolin
Sat Dec 20, 2008 11:41 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: bitmap transparente
Replies: 4
Views: 1261

Jose, An error like this one: Type mismatch in parameter 'hWndParent'(Wanted 'HWND_*,'got 'int') in function CREATEWINE means that the C function was expecting a HWND and got an int. In those cases you need to do a C "types casting": you have to place ...
by Antonio Linares
Sat May 10, 2008 8:17 pm
 
Forum: FiveWin for CA-Clipper
Topic: Converting POS application to xHarbour + FWH
Replies: 50
Views: 15632

... window. LINE ERROR DESCRIPTION 44 error E2349 Nonportable pointer conversion in function WMCopyData 107 error E2342 Type mismatch in parameter 'hWndParent'(Wanted 'HWND_*,'got 'int') in function CREATEWINE 107 error E2342 Type mismatch in parameter 'hMenu'(Wanted 'HMENU_*,'got 'int') in function ...
by xhbcoder
Thu May 08, 2008 4:48 pm
 
Forum: FiveWin for CA-Clipper
Topic: Converting POS application to xHarbour + FWH
Replies: 50
Views: 15632

... NIL in FWH example: hwndClient = FindWindowEx(hWnd, 0, "mdiclient", NIL) DLL32 Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _ ByVal hwndParent As Long, _ ByVal hwndChildAfter As Long, _ ByVal lpszClass As String, _ ByVal lpszWindow As String) As Long DLL32 Function FindWindowEx ( ...
by Otto
Wed Feb 20, 2008 7:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find MDICHILD windows
Replies: 6
Views: 1432

... I don’t know how to use this function. Maybe someone has a code example. //DLL32 Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwndParent As Long,ByVal hwndChildAfter As Long,ByVal lpszClass As String,ByVal lpszWindow As String) As Long Regards, Otto
by Otto
Tue Feb 19, 2008 8:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find MDICHILD windows
Replies: 6
Views: 1432

... window from a click then you have to use WindowFromPoint( nRow, nCol ) --> hWnd. To locate a specific child control use ChildWindowFromPoint( hWndParent, aPoint ) where aPoint is { nRow, nCol }.
by Antonio Linares
Tue Jan 24, 2006 9:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Detecting mouse click out of a window
Replies: 3
Views: 1059
Next

Return to advanced search