.



on-line?
? ?
Ru.Board » » » WM_DROPFILES

: ShIvADeSt

   •

     

sunstars

Newbie
| | | |
++ , / . , / , . case WM_COMMAND, case WM_DROPFILES DialogBox(hInst,MAKEINTRESOURCE(IDD_ENCR_DECR_WIZARD),hWnd,WizardDlgProc) . Visual Studio , hDrop=0x00009c44{unused=???}. hDrop=0x0017003c. hDrop , WM_DROPFILES   , hDrop. .

:
 
LRESULT CALLBACK pWndProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam){
HDC hDC;
PAINTSTRUCT ps;

static HINSTANCE hInst;
static HMENU hMenu;  //
 
switch(uMsg){

case WM_CREATE:
hInst = GetModuleHandle(NULL);
hBitMapUaFlag = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_UAFLAG));
GetObject(hBitMapUaFlag, sizeof(bm), (LPSTR)&bm);//
break;
case WM_PAINT:
hDC=BeginPaint(hWnd, &ps);
hMemDC = CreateCompatibleDC(hDC);// ,
SelectObject(hMemDC, hBitMapUaFlag);
BitBlt(hDC, 0, 0, bm.bmWidth, bm.bmHeight, hMemDC, 0, 0, SRCCOPY);
DeleteDC(hMemDC);
break;
case WM_CLOSE:

DestroyWindow(hWnd);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case ID_FILE_ENCRYPTFILE:
DialogBox(hInst,MAKEINTRESOURCE(IDD_ENCRYPT_DIALOG),hWnd,EncryptDlgProc);
break;
case ID_FILE_DECRYPTFILE:
DialogBox(hInst,MAKEINTRESOURCE(IDD_DECRYPT_DIALOG),hWnd,DecryptDlgProc);
break;
case ID_FILE_EXIT:
SendMessage(hWnd,WM_DESTROY,0,0);
break;
case ID_HELP_ABOUTENCRYPTDECRYPT:
DialogBox(hInst,MAKEINTRESOURCE(IDD_ABOUT),hWnd,AbuotDlg);
break;
}
case WM_DROPFILES:
hDrop=(HDROP)wParam;
DialogBox(hInst,MAKEINTRESOURCE(IDD_ENCR_DECR_WIZARD),hWnd,WizardDlgProc);
DragFinish(hDrop);
break;
default:
return DefWindowProc(hWnd,uMsg,wParam,lParam);
}
return 0;
}
 
 

 
 
:
.
, WM_COMMAND, WM_DROPFILES. wParam , - M_DROPFILES.

: 17 | . 06-01-2016 | : 16:22 31-12-2017
     

Ru.Board » » » WM_DROPFILES

:
:


, .


e-mail

?



Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.Board
© Ru.Board 2000-2018

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

.ru