Click here to Skip to main content
16,005,037 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Compare 2 different data file Pin
sumiko23-Aug-04 18:12
sumiko23-Aug-04 18:12 
GeneralRe: Compare 2 different data file Pin
Dave Kreskowiak24-Aug-04 0:21
mveDave Kreskowiak24-Aug-04 0:21 
GeneralRe: Compare 2 different data file Pin
sumiko31-Aug-04 20:40
sumiko31-Aug-04 20:40 
GeneralExporting RGN to Files Pin
zman90018-Aug-04 18:28
zman90018-Aug-04 18:28 
GeneralRe: Exporting RGN to Files Pin
Dave Kreskowiak19-Aug-04 3:02
mveDave Kreskowiak19-Aug-04 3:02 
GeneralRe: Exporting RGN to Files Pin
zman90019-Aug-04 17:21
zman90019-Aug-04 17:21 
GeneralRe: Exporting RGN to Files Pin
Dave Kreskowiak20-Aug-04 3:28
mveDave Kreskowiak20-Aug-04 3:28 
GeneralRe: Exporting RGN to Files Pin
zman90021-Aug-04 16:37
zman90021-Aug-04 16:37 
'Sorry I forgot these...
Global StaticWallRGN As Long 'Hold STATIC walls
Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Global Const RGN_AND = 1
Global Const RGN_COPY = 5
Global Const RGN_OR = 2
Global Const RGN_XOR = 3
Global Const RGN_DIFF = 4
Declare Function PtInRegion Lib "gdi32" (ByVal hRgn As Long, ByVal x As Long, ByVal y As Long) As Long
Declare Function OffsetRgn Lib "gdi32" (ByVal hRgn As Long, ByVal x As Long, ByVal y As Long) As Long

Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long)


StaticWallRGN is a supposed pointer to a region composed of Multiple Regions created with CreateRectRgn (max of 4096 Regions) all RGN_OR together using the Api CombineRgn. StaticWallRGN is the Final Combined object of all these seperate regions.

What I want to do is dump this combined region so I don't have to recreate it each time and just have it already complete and ready to be loaded for use by PtInRegion.

Also I'm not exactly sure how the data structure for a RGN (or HRGN) is setup so can make it manually without recreating it.

What StaticWallRGN gives me is a pointer but I want the data behind the pointer... but I can't seem to get at it (tried using copymemory).
GeneralBinding Array of Structures to Datagrid Pin
Gary Shel18-Aug-04 12:16
Gary Shel18-Aug-04 12:16 
GeneralListview selected row Pin
Tartampion18-Aug-04 10:52
Tartampion18-Aug-04 10:52 
GeneralRe: Listview selected row Pin
progload18-Aug-04 11:53
progload18-Aug-04 11:53 
GeneralRe: Listview selected row Pin
Tartampion19-Aug-04 2:26
Tartampion19-Aug-04 2:26 
GeneralSmart client Pin
Marcus Travaglia18-Aug-04 8:32
sussMarcus Travaglia18-Aug-04 8:32 
GeneralValidating a XML against a DTD Pin
XGaMeS18-Aug-04 8:23
XGaMeS18-Aug-04 8:23 
GeneralSocket problem Pin
XGaMeS18-Aug-04 4:25
XGaMeS18-Aug-04 4:25 
GeneralPLS HELP!! Pin
Lisana18-Aug-04 3:35
Lisana18-Aug-04 3:35 
GeneralRe: PLS HELP!! Pin
Dave Kreskowiak18-Aug-04 4:17
mveDave Kreskowiak18-Aug-04 4:17 
GeneralRe: PLS HELP!! Pin
Lisana18-Aug-04 4:48
Lisana18-Aug-04 4:48 
GeneralRe: PLS HELP!! Pin
Dave Kreskowiak18-Aug-04 6:43
mveDave Kreskowiak18-Aug-04 6:43 
GeneralRe: PLS HELP!! Pin
Lisana19-Aug-04 4:29
Lisana19-Aug-04 4:29 
GeneralRe: PLS HELP!! Pin
Dave Kreskowiak20-Aug-04 1:17
mveDave Kreskowiak20-Aug-04 1:17 
GeneralRe: PLS HELP!! Pin
Lisana20-Aug-04 3:43
Lisana20-Aug-04 3:43 
GeneralRe: PLS HELP!! Pin
Dave Kreskowiak21-Aug-04 10:29
mveDave Kreskowiak21-Aug-04 10:29 
GeneralRe: PLS HELP!! Pin
Lisana23-Aug-04 4:04
Lisana23-Aug-04 4:04 
GeneralRe: PLS HELP!! Pin
Dave Kreskowiak30-Aug-04 8:53
mveDave Kreskowiak30-Aug-04 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.