🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16957

Re: Open Windows Explorer in report view mode

#16957
From: Remy Lebeau (TeamB)
Date: Wed, 16 Apr 2003 20:56
26 lines
1751 bytes
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message
news:3e9dbef1@newsgroups.borland.com...

> Does anyone know of a way to tell Explorer to
> open in report view mode?

You have no control over that directly.

> Or to change the view programmatically after the window opened?

You have to first locate its HWND window (which you have to do manually),
then you can use Get/SetWindowLong() to adjust the window's style bits, ie:

    HWND hWnd = the listview handle;

    long style = GetWindowLong(hWnd, GWL_STYLE);
    if( (style & LVS_TYPEMASK)  != LVS_REPORT )
    {
        style &= ~LVS_TYPEMASK;
        style |= LVS_REPORT;
        SetWindowLong(hWnd, GWL_STYLE, style);
    }


Gambit
Technical Details
Message-ID: <3e9dc363$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e9dbef1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,13686067a4d557cc
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-16 14:07:50 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e9dbef1@newsgroups.borland.com>
Subject: Re: Open Windows Explorer in report view mode
Date: Wed, 16 Apr 2003 13:56:40 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e9dc363$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050526563 207.175.226.26 (16 Apr 2003 13:56:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail