Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman From: ebergman@isis.cs.du.edu (Eric Bergman-Terrell) Newsgroups: comp.windows.ms.programmer Subject: Temporarily adding scrollbars to window Message-ID: <1991Apr12.044108.4007@mnemosyne.cs.du.edu> Date: 12 Apr 91 04:41:08 GMT Sender: usenet@mnemosyne.cs.du.edu (netnews admin account) Reply-To: ebergman@isis.cs.du.edu (Eric Bergman-Terrell) Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.) Lines: 20 Disclaimer1: Nyx is a public access Unix system run by the University of Denver Disclaimer2: for the Denver community. The University has neither control over Disclaimer3: nor responsibility for the opinions of users. Folks: I'm trying to temporarily add horizontal and vertical scroll bars to a window. Will SetWindowLong() do this? If so, how must it be used? I'm trying sumething like the following: SetWindowLong(hwnd, GWL_STYLE, WS_OVERLAPPEDWINDOW | WS_VSCROLL | WS_HSCROLL); But it doesn't work... Do I also need to call ShowWindow() and/or UpdateWindow()? ADV thanks ANCE Terrell