begin process at 2012 05 28 07:43:04
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive C/C++

 > 

Archives

 > 

API

 > 

API, probleme de synchronisation?? refresh visible dans la dlg:(


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

API, probleme de synchronisation?? refresh visible dans la dlg:(

jeudi 19 juin 2003 à 14:42:48 | API, probleme de synchronisation?? refresh visible dans la dlg:(

JackosKing

yOp,

Bon voilà, je debute en API? et je voulais coder des menus persos, le probleme c'est que ma fenetre n'arrete pas de se refresh, meme quand il n'y a pas besoin!
voici mon code:

long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
{
switch (message)
{
case WM_ERASEBKGND:
{
HDC hDC;
RECT rcClient;
GetClientRect(hwnd,&rcClient);
hDC=GetDC(hwnd);
FillRect(hDC, &rcClient, CreateSolidBrush(RGB(255,255,0)));
ReleaseDC(hwnd,hDC);
return 0;
}
case WM_PAINT:
{
HDC hDC;
RECT rcClient;
GetClientRect(hwnd,&rcClient);
hDC=GetDC(hwnd);
SetTextColor(hDC,0x000000FF);
// SetBkMode(hDC,TRANSPARENT);
SetBkColor(hDC,RGB(255,255,0));
SetTextAlign(hDC,TA_CENTER|TA_TOP);
TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
SetPixel(hDC,1,1,RGB(0,0,255));
ReleaseDC(hwnd,hDC);
return 0;
}

case WM_DESTROY:
PostQuitMessage(0);
return 0;

default:
return DefWindowProc(hwnd, message, wParam, lParam);
}
}

la fenetre apprarait tout est bon, excepté le fait que dans la dlg, on voit un refresh:(

please help nb:)



JackosKing For EvEr
jeudi 19 juin 2003 à 14:54:15 | Re : API, probleme de synchronisation?? refresh visible dans la dlg:(

BruNews

Administrateur CodeS-SourceS
ne traite pas case WM_ERASEBKGND si tu traites WM_PAINT.
BruNews, ciao...


-------------------------------
Réponse au message :
-------------------------------

> yOp,
>
> Bon voilà, je debute en API? et je voulais coder des menus persos, le probleme c'est que ma fenetre n'arrete pas de se refresh, meme quand il n'y a pas besoin!
> voici mon code:
>
> long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> {
> switch (message)
> {
> case WM_ERASEBKGND:
> {
> HDC hDC;
> RECT rcClient;
> GetClientRect(hwnd,&rcClient);
> hDC=GetDC(hwnd);
> FillRect(hDC, &rcClient, CreateSolidBrush(RGB(255,255,0)));
> ReleaseDC(hwnd,hDC);
> return 0;
> }
> case WM_PAINT:
> {
> HDC hDC;
> RECT rcClient;
> GetClientRect(hwnd,&rcClient);
> hDC=GetDC(hwnd);
> SetTextColor(hDC,0x000000FF);
> // SetBkMode(hDC,TRANSPARENT);
> SetBkColor(hDC,RGB(255,255,0));
> SetTextAlign(hDC,TA_CENTER|TA_TOP);
> TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> SetPixel(hDC,1,1,RGB(0,0,255));
> ReleaseDC(hwnd,hDC);
> return 0;
> }
>
> case WM_DESTROY:
> PostQuitMessage(0);
> return 0;
>
> default:
> return DefWindowProc(hwnd, message, wParam, lParam);
> }
> }
>
> la fenetre apprarait tout est bon, excepté le fait que dans la dlg, on voit un refresh:(
>
> please help nb:)
>
>
>
> JackosKing For EvEr
jeudi 19 juin 2003 à 14:56:27 | Re : API, probleme de synchronisation?? refresh visible dans la dlg:(

BruNews

Administrateur CodeS-SourceS
De + enrgitre ton
HBRUSH hbr = CreateSolidBrush(RGB(255,255,0));
1 seule fois et passe hbr sinon plus de memoire dans ton processus.
BruNews, ciao...


-------------------------------
Réponse au message :
-------------------------------

> ne traite pas case WM_ERASEBKGND si tu traites WM_PAINT.
> BruNews, ciao...
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > yOp,
> >
> > Bon voilà, je debute en API? et je voulais coder des menus persos, le probleme c'est que ma fenetre n'arrete pas de se refresh, meme quand il n'y a pas besoin!
> > voici mon code:
> >
> > long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> > {
> > switch (message)
> > {
> > case WM_ERASEBKGND:
> > {
> > HDC hDC;
> > RECT rcClient;
> > GetClientRect(hwnd,&rcClient);
> > hDC=GetDC(hwnd);
> > FillRect(hDC, &rcClient, CreateSolidBrush(RGB(255,255,0)));
> > ReleaseDC(hwnd,hDC);
> > return 0;
> > }
> > case WM_PAINT:
> > {
> > HDC hDC;
> > RECT rcClient;
> > GetClientRect(hwnd,&rcClient);
> > hDC=GetDC(hwnd);
> > SetTextColor(hDC,0x000000FF);
> > // SetBkMode(hDC,TRANSPARENT);
> > SetBkColor(hDC,RGB(255,255,0));
> > SetTextAlign(hDC,TA_CENTER|TA_TOP);
> > TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> > SetPixel(hDC,1,1,RGB(0,0,255));
> > ReleaseDC(hwnd,hDC);
> > return 0;
> > }
> >
> > case WM_DESTROY:
> > PostQuitMessage(0);
> > return 0;
> >
> > default:
> > return DefWindowProc(hwnd, message, wParam, lParam);
> > }
> > }
> >
> > la fenetre apprarait tout est bon, excepté le fait que dans la dlg, on voit un refresh:(
> >
> > please help nb:)
> >
> >
> >
> > JackosKing For EvEr
>
jeudi 19 juin 2003 à 15:17:07 | Re : API, probleme de synchronisation?? refresh visible dans la dlg:(

JackosKing

thx
bon alors j'ai fait ce que tu as dit:
HBRUSH hbr;

long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
{
switch (message)
{

case WM_PAINT:
{
HDC hDC;
RECT rcClient;
GetClientRect(hwnd,&rcClient);
hDC=GetDC(hwnd);
FillRect(hDC, &rcClient, hbr);
SetTextColor(hDC,0x000000FF);
SetBkMode(hDC,TRANSPARENT);
// SetBkColor(hDC,RGB(255,255,0));
SetTextAlign(hDC,TA_CENTER|TA_TOP);
TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
SetPixel(hDC,1,1,RGB(0,0,255));
ReleaseDC(hwnd,hDC);
return 0;
}

case WM_DESTROY:
PostQuitMessage(0);
return 0;

default:
return DefWindowProc(hwnd, message, wParam, lParam);
}
}

mais j'ai toujours un probleme de refresh :(((
JackosKing For EvEr


-------------------------------
Réponse au message :
-------------------------------

> De + enrgitre ton
> HBRUSH hbr = CreateSolidBrush(RGB(255,255,0));
> 1 seule fois et passe hbr sinon plus de memoire dans ton processus.
> BruNews, ciao...
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > ne traite pas case WM_ERASEBKGND si tu traites WM_PAINT.
> > BruNews, ciao...
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > yOp,
> > >
> > > Bon voilà, je debute en API? et je voulais coder des menus persos, le probleme c'est que ma fenetre n'arrete pas de se refresh, meme quand il n'y a pas besoin!
> > > voici mon code:
> > >
> > > long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> > > {
> > > switch (message)
> > > {
> > > case WM_ERASEBKGND:
> > > {
> > > HDC hDC;
> > > RECT rcClient;
> > > GetClientRect(hwnd,&rcClient);
> > > hDC=GetDC(hwnd);
> > > FillRect(hDC, &rcClient, CreateSolidBrush(RGB(255,255,0)));
> > > ReleaseDC(hwnd,hDC);
> > > return 0;
> > > }
> > > case WM_PAINT:
> > > {
> > > HDC hDC;
> > > RECT rcClient;
> > > GetClientRect(hwnd,&rcClient);
> > > hDC=GetDC(hwnd);
> > > SetTextColor(hDC,0x000000FF);
> > > // SetBkMode(hDC,TRANSPARENT);
> > > SetBkColor(hDC,RGB(255,255,0));
> > > SetTextAlign(hDC,TA_CENTER|TA_TOP);
> > > TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> > > SetPixel(hDC,1,1,RGB(0,0,255));
> > > ReleaseDC(hwnd,hDC);
> > > return 0;
> > > }
> > >
> > > case WM_DESTROY:
> > > PostQuitMessage(0);
> > > return 0;
> > >
> > > default:
> > > return DefWindowProc(hwnd, message, wParam, lParam);
> > > }
> > > }
> > >
> > > la fenetre apprarait tout est bon, excepté le fait que dans la dlg, on voit un refresh:(
> > >
> > > please help nb:)
> > >
> > >
> > >
> > > JackosKing For EvEr
> >
>
jeudi 19 juin 2003 à 15:28:08 | Re : API, probleme de synchronisation?? refresh visible dans la dlg:(

BruNews

Administrateur CodeS-SourceS
hDC=GetDC(hwnd); NON
va voir dans mes sources.
BruNews, ciao...


-------------------------------
Réponse au message :
-------------------------------

> thx
> bon alors j'ai fait ce que tu as dit:
> HBRUSH hbr;
>
> long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> {
> switch (message)
> {
>
> case WM_PAINT:
> {
> HDC hDC;
> RECT rcClient;
> GetClientRect(hwnd,&rcClient);
> hDC=GetDC(hwnd);
> FillRect(hDC, &rcClient, hbr);
> SetTextColor(hDC,0x000000FF);
> SetBkMode(hDC,TRANSPARENT);
> // SetBkColor(hDC,RGB(255,255,0));
> SetTextAlign(hDC,TA_CENTER|TA_TOP);
> TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> SetPixel(hDC,1,1,RGB(0,0,255));
> ReleaseDC(hwnd,hDC);
> return 0;
> }
>
> case WM_DESTROY:
> PostQuitMessage(0);
> return 0;
>
> default:
> return DefWindowProc(hwnd, message, wParam, lParam);
> }
> }
>
> mais j'ai toujours un probleme de refresh :(((
> JackosKing For EvEr
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > De + enrgitre ton
> > HBRUSH hbr = CreateSolidBrush(RGB(255,255,0));
> > 1 seule fois et passe hbr sinon plus de memoire dans ton processus.
> > BruNews, ciao...
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > ne traite pas case WM_ERASEBKGND si tu traites WM_PAINT.
> > > BruNews, ciao...
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > yOp,
> > > >
> > > > Bon voilà, je debute en API? et je voulais coder des menus persos, le probleme c'est que ma fenetre n'arrete pas de se refresh, meme quand il n'y a pas besoin!
> > > > voici mon code:
> > > >
> > > > long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> > > > {
> > > > switch (message)
> > > > {
> > > > case WM_ERASEBKGND:
> > > > {
> > > > HDC hDC;
> > > > RECT rcClient;
> > > > GetClientRect(hwnd,&rcClient);
> > > > hDC=GetDC(hwnd);
> > > > FillRect(hDC, &rcClient, CreateSolidBrush(RGB(255,255,0)));
> > > > ReleaseDC(hwnd,hDC);
> > > > return 0;
> > > > }
> > > > case WM_PAINT:
> > > > {
> > > > HDC hDC;
> > > > RECT rcClient;
> > > > GetClientRect(hwnd,&rcClient);
> > > > hDC=GetDC(hwnd);
> > > > SetTextColor(hDC,0x000000FF);
> > > > // SetBkMode(hDC,TRANSPARENT);
> > > > SetBkColor(hDC,RGB(255,255,0));
> > > > SetTextAlign(hDC,TA_CENTER|TA_TOP);
> > > > TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> > > > SetPixel(hDC,1,1,RGB(0,0,255));
> > > > ReleaseDC(hwnd,hDC);
> > > > return 0;
> > > > }
> > > >
> > > > case WM_DESTROY:
> > > > PostQuitMessage(0);
> > > > return 0;
> > > >
> > > > default:
> > > > return DefWindowProc(hwnd, message, wParam, lParam);
> > > > }
> > > > }
> > > >
> > > > la fenetre apprarait tout est bon, excepté le fait que dans la dlg, on voit un refresh:(
> > > >
> > > > please help nb:)
> > > >
> > > >
> > > >
> > > > JackosKing For EvEr
> > >
> >
>
jeudi 19 juin 2003 à 15:48:36 | Re : API, probleme de synchronisation?? refresh visible dans la dlg:(

JackosKing

Ok thx :)

bon je met la solution pour ceux qui on suivit (si il y en a:))
case WM_ERASEBKGND:
return 0;

case WM_PAINT:
{
HDC hDC;
RECT rcClient;
PAINTSTRUCT ps;
GetClientRect(hwnd,&rcClient);
hDC=BeginPaint(hwnd,&ps);
FillRect(hDC, &rcClient, hbr);
SetTextColor(hDC,0x000000FF);
// SetBkMode(hDC,TRANSPARENT);
SetBkColor(hDC,RGB(255,255,0));
SetTextAlign(hDC,TA_CENTER|TA_TOP);
TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
SetPixel(hDC,1,1,RGB(0,0,255));
EndPaint(hwnd,&ps);
// ReleaseDC(hwnd,hDC);
return 0;
}
JackosKing For EvEr


-------------------------------
Réponse au message :
-------------------------------

> hDC=GetDC(hwnd); NON
> va voir dans mes sources.
> BruNews, ciao...
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > thx
> > bon alors j'ai fait ce que tu as dit:
> > HBRUSH hbr;
> >
> > long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> > {
> > switch (message)
> > {
> >
> > case WM_PAINT:
> > {
> > HDC hDC;
> > RECT rcClient;
> > GetClientRect(hwnd,&rcClient);
> > hDC=GetDC(hwnd);
> > FillRect(hDC, &rcClient, hbr);
> > SetTextColor(hDC,0x000000FF);
> > SetBkMode(hDC,TRANSPARENT);
> > // SetBkColor(hDC,RGB(255,255,0));
> > SetTextAlign(hDC,TA_CENTER|TA_TOP);
> > TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> > SetPixel(hDC,1,1,RGB(0,0,255));
> > ReleaseDC(hwnd,hDC);
> > return 0;
> > }
> >
> > case WM_DESTROY:
> > PostQuitMessage(0);
> > return 0;
> >
> > default:
> > return DefWindowProc(hwnd, message, wParam, lParam);
> > }
> > }
> >
> > mais j'ai toujours un probleme de refresh :(((
> > JackosKing For EvEr
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > De + enrgitre ton
> > > HBRUSH hbr = CreateSolidBrush(RGB(255,255,0));
> > > 1 seule fois et passe hbr sinon plus de memoire dans ton processus.
> > > BruNews, ciao...
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > ne traite pas case WM_ERASEBKGND si tu traites WM_PAINT.
> > > > BruNews, ciao...
> > > >
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > yOp,
> > > > >
> > > > > Bon voilà, je debute en API? et je voulais coder des menus persos, le probleme c'est que ma fenetre n'arrete pas de se refresh, meme quand il n'y a pas besoin!
> > > > > voici mon code:
> > > > >
> > > > > long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> > > > > {
> > > > > switch (message)
> > > > > {
> > > > > case WM_ERASEBKGND:
> > > > > {
> > > > > HDC hDC;
> > > > > RECT rcClient;
> > > > > GetClientRect(hwnd,&rcClient);
> > > > > hDC=GetDC(hwnd);
> > > > > FillRect(hDC, &rcClient, CreateSolidBrush(RGB(255,255,0)));
> > > > > ReleaseDC(hwnd,hDC);
> > > > > return 0;
> > > > > }
> > > > > case WM_PAINT:
> > > > > {
> > > > > HDC hDC;
> > > > > RECT rcClient;
> > > > > GetClientRect(hwnd,&rcClient);
> > > > > hDC=GetDC(hwnd);
> > > > > SetTextColor(hDC,0x000000FF);
> > > > > // SetBkMode(hDC,TRANSPARENT);
> > > > > SetBkColor(hDC,RGB(255,255,0));
> > > > > SetTextAlign(hDC,TA_CENTER|TA_TOP);
> > > > > TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> > > > > SetPixel(hDC,1,1,RGB(0,0,255));
> > > > > ReleaseDC(hwnd,hDC);
> > > > > return 0;
> > > > > }
> > > > >
> > > > > case WM_DESTROY:
> > > > > PostQuitMessage(0);
> > > > > return 0;
> > > > >
> > > > > default:
> > > > > return DefWindowProc(hwnd, message, wParam, lParam);
> > > > > }
> > > > > }
> > > > >
> > > > > la fenetre apprarait tout est bon, excepté le fait que dans la dlg, on voit un refresh:(
> > > > >
> > > > > please help nb:)
> > > > >
> > > > >
> > > > >
> > > > > JackosKing For EvEr
> > > >
> > >
> >
>
jeudi 19 juin 2003 à 15:58:26 | Re : API, probleme de synchronisation?? refresh visible dans la dlg:(

BruNews

Administrateur CodeS-SourceS
WM_ERASEBKGND tu peux enlever.
BruNews, ciao...


-------------------------------
Réponse au message :
-------------------------------

> Ok thx :)
>
> bon je met la solution pour ceux qui on suivit (si il y en a:))
> case WM_ERASEBKGND:
> return 0;
>
> case WM_PAINT:
> {
> HDC hDC;
> RECT rcClient;
> PAINTSTRUCT ps;
> GetClientRect(hwnd,&rcClient);
> hDC=BeginPaint(hwnd,&ps);
> FillRect(hDC, &rcClient, hbr);
> SetTextColor(hDC,0x000000FF);
> // SetBkMode(hDC,TRANSPARENT);
> SetBkColor(hDC,RGB(255,255,0));
> SetTextAlign(hDC,TA_CENTER|TA_TOP);
> TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> SetPixel(hDC,1,1,RGB(0,0,255));
> EndPaint(hwnd,&ps);
> // ReleaseDC(hwnd,hDC);
> return 0;
> }
> JackosKing For EvEr
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > hDC=GetDC(hwnd); NON
> > va voir dans mes sources.
> > BruNews, ciao...
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > thx
> > > bon alors j'ai fait ce que tu as dit:
> > > HBRUSH hbr;
> > >
> > > long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> > > {
> > > switch (message)
> > > {
> > >
> > > case WM_PAINT:
> > > {
> > > HDC hDC;
> > > RECT rcClient;
> > > GetClientRect(hwnd,&rcClient);
> > > hDC=GetDC(hwnd);
> > > FillRect(hDC, &rcClient, hbr);
> > > SetTextColor(hDC,0x000000FF);
> > > SetBkMode(hDC,TRANSPARENT);
> > > // SetBkColor(hDC,RGB(255,255,0));
> > > SetTextAlign(hDC,TA_CENTER|TA_TOP);
> > > TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> > > SetPixel(hDC,1,1,RGB(0,0,255));
> > > ReleaseDC(hwnd,hDC);
> > > return 0;
> > > }
> > >
> > > case WM_DESTROY:
> > > PostQuitMessage(0);
> > > return 0;
> > >
> > > default:
> > > return DefWindowProc(hwnd, message, wParam, lParam);
> > > }
> > > }
> > >
> > > mais j'ai toujours un probleme de refresh :(((
> > > JackosKing For EvEr
> > >
> > >
> > > -------------------------------
> > > Réponse au message :
> > > -------------------------------
> > >
> > > > De + enrgitre ton
> > > > HBRUSH hbr = CreateSolidBrush(RGB(255,255,0));
> > > > 1 seule fois et passe hbr sinon plus de memoire dans ton processus.
> > > > BruNews, ciao...
> > > >
> > > >
> > > > -------------------------------
> > > > Réponse au message :
> > > > -------------------------------
> > > >
> > > > > ne traite pas case WM_ERASEBKGND si tu traites WM_PAINT.
> > > > > BruNews, ciao...
> > > > >
> > > > >
> > > > > -------------------------------
> > > > > Réponse au message :
> > > > > -------------------------------
> > > > >
> > > > > > yOp,
> > > > > >
> > > > > > Bon voilà, je debute en API? et je voulais coder des menus persos, le probleme c'est que ma fenetre n'arrete pas de se refresh, meme quand il n'y a pas besoin!
> > > > > > voici mon code:
> > > > > >
> > > > > > long WINAPI WndProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
> > > > > > {
> > > > > > switch (message)
> > > > > > {
> > > > > > case WM_ERASEBKGND:
> > > > > > {
> > > > > > HDC hDC;
> > > > > > RECT rcClient;
> > > > > > GetClientRect(hwnd,&rcClient);
> > > > > > hDC=GetDC(hwnd);
> > > > > > FillRect(hDC, &rcClient, CreateSolidBrush(RGB(255,255,0)));
> > > > > > ReleaseDC(hwnd,hDC);
> > > > > > return 0;
> > > > > > }
> > > > > > case WM_PAINT:
> > > > > > {
> > > > > > HDC hDC;
> > > > > > RECT rcClient;
> > > > > > GetClientRect(hwnd,&rcClient);
> > > > > > hDC=GetDC(hwnd);
> > > > > > SetTextColor(hDC,0x000000FF);
> > > > > > // SetBkMode(hDC,TRANSPARENT);
> > > > > > SetBkColor(hDC,RGB(255,255,0));
> > > > > > SetTextAlign(hDC,TA_CENTER|TA_TOP);
> > > > > > TextOut(hDC,(int)((float)rcClient.right/2),5,"text",strlen("text"));
> > > > > > SetPixel(hDC,1,1,RGB(0,0,255));
> > > > > > ReleaseDC(hwnd,hDC);
> > > > > > return 0;
> > > > > > }
> > > > > >
> > > > > > case WM_DESTROY:
> > > > > > PostQuitMessage(0);
> > > > > > return 0;
> > > > > >
> > > > > > default:
> > > > > > return DefWindowProc(hwnd, message, wParam, lParam);
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > la fenetre apprarait tout est bon, excepté le fait que dans la dlg, on voit un refresh:(
> > > > > >
> > > > > > please help nb:)
> > > > > >
> > > > > >
> > > > > >
> > > > > > JackosKing For EvEr
> > > > >
> > > >
> > >
> >
>


Cette discussion est classée dans : refresh, hwnd, return, hdc, rcclient


Répondre à ce message

Sujets en rapport avec ce message

Question à propos de DrawText [ par Freeman2222 ] Hello tlm! J'ai écrit une application windows qui m'affiche du texte dans un rectange prédéfini mais le prob c'est que DrawText ne revient pas automat Contrôle windows sur surface DirectDraw [ par rom2n ] Bonjours a tous, je suis en train de développer un jeu en 2D avec DirectDraw et je voulais savoir comment on pouvais affiché un contrôle windows sur u affichage zone client [ par informatichien ] probleme : rafraichir une partie d'une boite de dialogue : boite dialogue contenant en partie superieure 6 boutons, en partie inferieure deux lignes d Open Gl pépin [ par DarkNavius ] Chères personnes lisant mon message d'appel à l'aide.J'ai besoin d'aide au sujet d'un programme en opengl que j'ai construit en copiant et collant que api window [ par ropars ] Bonjour<br un probleme de calcul de courbe [ par Cyr62110 ] Voila mon probleme, je creer un programme dessinant des courbes (fonction,point par point).Mais j'ai un probleme, lors ce que je teste et je rentre le Problème de class [ par sran_isback ] salut! Voila j'ay crée un programme pour gerer un petit robot. Dans le principe ce robot est piloté par des ia (dans la classe ia), et une "entité s Fenetre windows en cpp [ par FeelCode ] bon j'essaye de cree une fenetre windows tout simple mai j'ai un probleme de convertion voir le code plus bas.//************************************** Probléme de compilation [ par makina0711 ] Bonjour a tous j'ai cette source pour ouvrire mon bmp mais a cette ligne il y a une ereure: DrawState(hdc,NULL,NULL,(long)hBmp,NULL,10,10,0,0,DST_BI WIN32 : Editbox non editable avec une boite de dialogue CHILD [ par Pistol_Pete ] BonjourVoila mon problème: J'ai créé une fenêtre et dans cette fenêtre j'ai une boite de dialogue avec le style WS_CHILD. Tous mes contrôles de cette


Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 1,654 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales