[2] | 1 | /*
|
---|
| 2 | * storewindow.cpp: creating of an invisible child window of
|
---|
| 3 | * the WPS folder which holds important data
|
---|
| 4 | * like the object handle and frame control
|
---|
| 5 | * information.
|
---|
| 6 | *
|
---|
| 7 | * (C) Chris Wohlgenuth 1999
|
---|
| 8 | */
|
---|
| 9 | /*
|
---|
| 10 | * This program is free software; you can redistribute it and/or modify
|
---|
| 11 | * it under the terms of the GNU General Public License as published by
|
---|
| 12 | * the Free Software Foundation; either version 2, or (at your option)
|
---|
| 13 | * any later version.
|
---|
| 14 | *
|
---|
| 15 | * This program is distributed in the hope that it will be useful,
|
---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 18 | * GNU General Public License for more details.
|
---|
| 19 | *
|
---|
| 20 | * You should have received a copy of the GNU General Public License
|
---|
| 21 | * along with this program; see the file COPYING. If not, write to
|
---|
| 22 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 23 | */
|
---|
| 24 | #include <stdlib.h>
|
---|
| 25 | #include "progfolder.h"
|
---|
| 26 | #include "progfolder.hh"
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | MRESULT EXPENTRY storeWindowProc (HWND hwnd,ULONG msg, MPARAM mp1,MPARAM mp2)
|
---|
| 30 | {
|
---|
| 31 | if( msg==WM_DESTROY)
|
---|
| 32 | free(WinQueryWindowPtr(hwnd,QWP_FCTRLDATA));
|
---|
| 33 | return WinDefWindowProc(hwnd, msg, mp1, mp2);
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | HWND createStoreWindow(HWND hwndCLF)
|
---|
| 37 | {
|
---|
| 38 | static BOOL bStoreWindowRegistered=FALSE;
|
---|
| 39 |
|
---|
| 40 | if(!bStoreWindowRegistered) {
|
---|
| 41 | if(WinRegisterClass(WinQueryAnchorBlock(HWND_DESKTOP),"FolderStoreWindow",&storeWindowProc,0,NUM_STOREWINDOWBYTES))
|
---|
| 42 | {
|
---|
| 43 | bStoreWindowRegistered=TRUE;
|
---|
| 44 | }else
|
---|
| 45 | return NULL;
|
---|
| 46 | }
|
---|
| 47 | return WinCreateWindow(hwndCLF,"FolderStoreWindow","",0,
|
---|
| 48 | 0,0,0,0,0,HWND_TOP,ID_FOLDERSTOREWINDOW,NULL,0);
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 |
|
---|
| 53 |
|
---|