FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

DRAWING

Get a pointer to GWorld of a window


There is no special association between a window and a GWorld, and so your attempts are doomed to failure :-(

For what it's worth, you can get information similar to the above from the window's CGrafPort, as follows:-

WINDOW 1,,(0,0)-(319,239),3
wptr&=WINDOW(_wndPointer)
pixMapHndl&=[wptr& + _portPixMap]
DstRowBytes% = pixMapHndl&..RowBytes% AND &H3fff
DstPtr&=pixMapHndl&..BaseAddr&

Robert