I have looked all over the net for an example on how to use this function
but got no joy, lots of jargon explaining the function but no examples.
In VB.Net the hwnd has gone there was one in vb6 - I tried using Handle but
nothing happens
Can anyone shed some light on how to use this function or give an example?
Many Thanks
TBS 3 2694
In article <#S************ **@TK2MSFTNGP14 .phx.gbl>, Scott Gunn wrote: I have looked all over the net for an example on how to use this function but got no joy, lots of jargon explaining the function but no examples.
In VB.Net the hwnd has gone there was one in vb6 - I tried using Handle but nothing happens
Can anyone shed some light on how to use this function or give an example?
Many Thanks TBS
The handle property is the hWnd. You have probably declared your
function incorrectly... Can you post some example code (including your
declaration of ScrollWindowEx) ? It would go a long way to helping you.
You may also want to look at the forms AutoScroll property to see if
this helps you in accomplishing your goal.
HTH
--
Tom Shelton [MVP]
OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 2 Build 2600
System Up Time: 17 Days, 1 Hours, 13 Minutes, 45 Seconds
Here is my sample code:
Declare Function ScrollWindowEx Lib "user32" (ByVal hwnd As Integer, ByVal
dx As Integer, ByVal dy As Integer, ByRef lprcScroll As Rectangle, ByRef
lprcClip As Rectangle, ByVal hrgnUpdate As Integer, ByRef lprcUpdate As
Rectangle, ByVal fuScroll As Integer) As Integer
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Const SW_INVALIDATE As Integer = 2
ScrollWindowEx( Me.Handle.ToInt 32, 0, -10, Nothing, Nothing, Nothing,
Nothing, SW_INVALIDATE)
End Sub
Many Thanks
TBS
"Tom Shelton" <to*@YOUKNOWTHE DRILLmtogden.co m> wrote in message
news:eb******** ******@TK2MSFTN GP09.phx.gbl... In article <#S************ **@TK2MSFTNGP14 .phx.gbl>, Scott Gunn wrote: I have looked all over the net for an example on how to use this
function but got no joy, lots of jargon explaining the function but no examples.
In VB.Net the hwnd has gone there was one in vb6 - I tried using Handle
but nothing happens
Can anyone shed some light on how to use this function or give an
example? Many Thanks TBS
The handle property is the hWnd. You have probably declared your function incorrectly... Can you post some example code (including your declaration of ScrollWindowEx) ? It would go a long way to helping you.
You may also want to look at the forms AutoScroll property to see if this helps you in accomplishing your goal.
HTH -- Tom Shelton [MVP] OS Name: Microsoft Windows XP Professional OS Version: 5.1.2600 Service Pack 2 Build 2600 System Up Time: 17 Days, 1 Hours, 13 Minutes, 45 Seconds ScrollWindowEx( Me.Handle.ToInt 32, 0, -10, Nothing, Nothing, Nothing, Nothing, SW_INVALIDATE)
Nothing isn't the same as a null pointer. What you're doing here is to
pass in rectangles initialized to their default values {0,0,0,0}, and
since such rects are empty I guess nothing happens.
To pass in a null pointer, change the parameter type to ByVal As
IntPtr and pass IntPtr.Zero.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: domeceo |
last post by:
can anyone tell me why I cannot pass values in a setTimeout function
whenever I use this function it says "menu is undefined" after th
alert.
function imgOff(menu, num) {
if (document.images) {
document.images.src = eval("mt" +menu+ ".src")
}
alert("imgOff_hidemenu");
hideMenu=setTimeout('Hide(menu,num)',500);
|
by: phil_gg04 |
last post by:
Dear Javascript Experts,
Opera seems to have different ideas about the visibility of Javascript
functions than other browsers. For example, if I have this code:
if (1==2) {
function invisible() {
alert("invisible() called");
}
}
|
by: laredotornado |
last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to
have my Javascript function execute from the BODY's "onload" method,
but if there is already an onload method defined, I would like mine to
run immediately after it. So in the code below, what JS would i need
to add to my "myfile.inc" page so that I could guarantee this behavior?
<!-- main page -->
<html>
<head>
<script type="text/javascript">
|
by: sushil |
last post by:
+1 #include<stdio.h>
+2 #include <stdlib.h>
+3 typedef struct
+4 {
+5 unsigned int PID;
+6 unsigned int CID;
+7 } T_ID;
+8
+9 typedef unsigned int (*T_HANDLER)(void);
+10
|
by: Olov Johansson |
last post by:
I just found out that JavaScript 1.5 (I tested this with Firefox 1.0.7
and Konqueror 3.5) has support not only for standard function
definitions, function expressions (lambdas) and Function constructors
(these three I knew about), but also conditional function definitions,
as described in http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Defining_Functions
].
An example:
function fun() {
| |
by: Beta What |
last post by:
Hello,
I have a question about casting a function pointer. Say I want to make
a generic module (say some ADT implementation) that requires a function
pointer from the 'actual/other modules' that takes arguments of type
(void *) because the ADT must be able to deal with any type of data.
In my actual code, I will code the function to take arguments of their
real types, then when I pass this pointer through an interface
function, I...
|
by: f rom |
last post by:
----- Forwarded Message ----
From: Josiah Carlson <jcarlson@uci.edu>
To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org
Sent: Monday, December 4, 2006 10:03:28 PM
Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2
Ask on python-list@python.org .
- Josiah
|
by: Larax |
last post by:
Best explanation of my question will be an example, look below at this
simple function:
function SetEventHandler(element)
{
// some operations on element
element.onclick =
function(event)
{
|
by: alex |
last post by:
I am so confused with these three concept,who can explained it?thanks
so much?
e.g.
var f= new Function("x", "y", "return x * y");
function f(x,y){
return x*y
}
var f=function(x,y){
|
by: VK |
last post by:
I was getting this effect N times but each time I was in rush to just
make it work, and later I coudn't recall anymore what was the original
state I was working around. This time I nailed the bastard so posting
it before I forgot again...
By taking this minimum code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |