 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Nicolas ROBERT Guest
|
Posted: Thu May 13, 2004 9:54 am Post subject: comment Creer une fenêtre non-redimensionable ? |
|
|
bonjour,
Je débute en C++ et je développe une application sous visualC++ V6.
Je souhaite créer une fenêtre qui ne peut se redimensionner
Inst = HInst;
WNDCLASSEX WLibClass;
WLibClass.cbSize=sizeof(WNDCLASSEX);
WLibClass.cbClsExtra=0;
WLibClass.cbWndExtra=0;
WLibClass.lpszClassName="WLibWindow";
WLibClass.hbrBackground=(HBRUSH)COLOR_WINDOW;
WLibClass.hCursor=LoadCursor(0,IDC_ARROW);
WLibClass.hIcon=LoadIcon(Inst,MAKEINTRESOURCE(Icone));
WLibClass.hIconSm=LoadIcon(Inst,MAKEINTRESOURCE(Icone));
WLibClass.hInstance=Inst;
WLibClass.lpfnWndProc=MessagesProc;
WLibClass.lpszMenuName=(PCSTR)IDR_MENU1;
WLibClass.style=CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
RegisterClassEx(&WLibClass);
hwnd=CreateWindow("WLibWindow",title,WS_OVERLAPPEDWINDOW,x,y,width,height,Pa
rent->hwnd,0,HInst,0);
Je pense qu'il me faut ajouter un paramètre dans WlibClass.style mais je ne
l'ai pas trouvé.
Quelqu'un a-t-il une idée ?
d'avance merci
|
|
| Back to top |
|
 |
Le Géant Vert Guest
|
Posted: Thu May 13, 2004 12:54 pm Post subject: Re: comment Creer une fenêtre non-redimensionable ? |
|
|
essaye qqch come ça :
DWORD dwWindowStyle = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU &
~WS_THICKFRAME | WS_MINIMIZEBOX & ~WS_MAXIMIZEBOX | WS_VISIBLE;
hwnd = CreateWindow("WLibWindow", title, dwWindowStyle, x, y, width,
height, Parent->hwnd, 0, HInst, 0);
cela dit la question aura plus ça place sur un NG win32 ;)
Nicolas ROBERT wrote:
| Quote: | bonjour,
Je débute en C++ et je développe une application sous visualC++ V6.
Je souhaite créer une fenêtre qui ne peut se redimensionner
Inst = HInst;
WNDCLASSEX WLibClass;
WLibClass.cbSize=sizeof(WNDCLASSEX);
WLibClass.cbClsExtra=0;
WLibClass.cbWndExtra=0;
WLibClass.lpszClassName="WLibWindow";
WLibClass.hbrBackground=(HBRUSH)COLOR_WINDOW;
WLibClass.hCursor=LoadCursor(0,IDC_ARROW);
WLibClass.hIcon=LoadIcon(Inst,MAKEINTRESOURCE(Icone));
WLibClass.hIconSm=LoadIcon(Inst,MAKEINTRESOURCE(Icone));
WLibClass.hInstance=Inst;
WLibClass.lpfnWndProc=MessagesProc;
WLibClass.lpszMenuName=(PCSTR)IDR_MENU1;
WLibClass.style=CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
RegisterClassEx(&WLibClass);
hwnd=CreateWindow("WLibWindow",title,WS_OVERLAPPEDWINDOW,x,y,width,height,Pa
rent->hwnd,0,HInst,0);
Je pense qu'il me faut ajouter un paramètre dans WlibClass.style mais je ne
l'ai pas trouvé.
Quelqu'un a-t-il une idée ?
d'avance merci
|
|
|
| Back to top |
|
 |
Fabien LE LEZ Guest
|
Posted: Fri May 14, 2004 1:58 am Post subject: Re: comment Creer une fenêtre non-redimensionable ? |
|
|
HS.
fr.comp.os.ms-windows.programmation, FAQ, toussa...
--
FLL, Epagneul Breton
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|