Accueil > Forum > > > > Toolbar et Tooltip
Toolbar et Tooltip
lundi 31 mars 2003 à 13:47:21 |
Toolbar et Tooltip

trif
|
Bonjour, j'ai creer une toolbar de la facon suivante, et j'aimerai creer des tooltips pour les boutons de cette toolbar Comment faire? HWND CreateToolBar(HWND hWnd, HINSTANCE hInst) { HIMAGELIST hImglBtn;//, hImglBtnHot; // Toolbar images handlers TBBUTTON tbb[5]; // Button struct for tool bar static HWND hWndTB; // Toolbar window handler HBITMAP hBtn; // bitmaps handle // begin ToolBar window creation hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TBSTYLE_TOOLTIPS | TBSTYLE_AUTOSIZE, 0, 0, 0, 0, hWnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL); /*hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, hWnd, (HMENU)ID_TOOLBAR, hInst, NULL);*/ // create image List hImglBtn = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK , 4, 1); hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDR_TOOLBAR1), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); // use transperacy ImageList_AddMasked(hImglBtn, hBtn, RGB(255, 255, 255)); DeleteObject(hBtn); // Kill image object // create image List Hot Bar /*hImglBtnHot = ImageList_Create(24, 22, ILC_COLOR32 | ILC_MASK , 4, 1); hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_TOOLBARHOT), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); // use transperacy ImageList_AddMasked(hImglBtnHot, hBtn, RGB(255, 0, 255)); DeleteObject(hBtn); // Kill image object*/ // Attach the image lists to the window handler SendMessage(hWndTB, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImglBtn); //SendMessage(hWndTB, TB_SETHOTIMAGELIST, (WPARAM)0, (WPARAM)hImglBtnHot); // button 1 properties tbb[0].iBitmap = 0; // Array of picture to show tbb[0].idCommand = 0; tbb[0].fsState = TBSTATE_ENABLED; // button status tbb[0].fsStyle = TBSTYLE_BUTTON; // button style tbb[0].dwData = 0; tbb[0].iString = 0; tbb[0].idCommand=ID_FICHIER_OUVRIR; // button identifier // button 2 properties tbb[1].iBitmap = 1; tbb[1].idCommand = 0; tbb[1].fsState = TBSTATE_ENABLED; tbb[1].fsStyle = TBSTYLE_BUTTON; tbb[1].dwData = 0; tbb[1].iString = 0; tbb[1].idCommand=ID_FICHIER_ENREGISTRERSOUS; // seperator properties tbb[2].iBitmap = 0; tbb[2].idCommand = 0; tbb[2].fsState = TBSTATE_ENABLED; tbb[2].fsStyle = TBSTYLE_SEP; tbb[2].dwData = 0; tbb[2].iString = 0; // button 4 properties tbb[3].iBitmap = 2; tbb[3].idCommand = 0; tbb[3].fsState = TBSTATE_ENABLED; tbb[3].fsStyle = TBSTYLE_BUTTON; tbb[3].dwData = 0; tbb[3].iString = 0; tbb[3].idCommand=ID_FICHIER_QUITTER; // button 5 properties tbb[4].iBitmap = 3; tbb[4].idCommand = 0; tbb[4].fsState = TBSTATE_ENABLED; tbb[4].fsStyle = TBSTYLE_BUTTON; tbb[4].dwData = 0; tbb[4].iString = 0; tbb[4].idCommand=ID__APROPOS; // Add the buttons SendMessage(hWndTB, TB_ADDBUTTONS, (WPARAM)5, (LPARAM)(LPTBBUTTON)&tbb); // add buttons // Auto Disable buttons on startup /*SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_PE_EDITOR, (LPARAM)FALSE); // Disable Buttons SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_SAVE_DISASM, (LPARAM)FALSE); // at first run*/ // Kill image object DeleteObject(hBtn); // Return tool bar window handler return hWndTB; }
|
|
lundi 31 mars 2003 à 14:45:27 |
Re : Toolbar et Tooltip

BruNews
|
J'ai fait un copier depuis un exemple que j'ai fait pour un autre. Te suffit adapter les idc_xxx. Tu recup WM_NOTIFY dans ta wndProc(), ici je ne verifie pas qui arrive car un seul emetteur possible, si tu as plusieurs controles pouvant emettre WM_NOTIFY alors regarde le hwndFrom.
case WM_NOTIFY: switch (((LPNMHDR) lParam)->code) { case TTN_NEEDTEXT: LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT) lParam; switch(lpttt->hdr.idFrom) { case IDC_TOOL_NEWCATEG: lpttt->lpszText = "Crée nouvelle catégorie"; break; case IDC_TOOL_DELCATEG: lpttt->lpszText = "Supprime catégorie courante"; break; case IDC_TOOL_NEWURL: lpttt->lpszText = "Crée nouveau lien"; break; case IDC_TOOL_DELURL: lpttt->lpszText = "Supprime lien sélectionné"; break; case IDC_TOOL_F1: lpttt->lpszText = "Aide du logiciel"; break; case IDC_TOOL_ABOUT: lpttt->lpszText = "A propos de..."; break; case IDC_TOOL_QUIT: lpttt->lpszText = "Fermeture logiciel"; break; } } return 0; BruNews, ciao...
------------------------------- Réponse au message : -------------------------------
> Bonjour, j'ai creer une toolbar de la facon suivante, et j'aimerai creer des tooltips pour les boutons de cette toolbar > Comment faire? > HWND CreateToolBar(HWND hWnd, HINSTANCE hInst) > { > HIMAGELIST hImglBtn;//, hImglBtnHot; // Toolbar images handlers > TBBUTTON tbb[5]; // Button struct for tool bar > static HWND hWndTB; // Toolbar window handler > HBITMAP hBtn; // bitmaps handle > > // begin ToolBar window creation > hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TBSTYLE_TOOLTIPS | TBSTYLE_AUTOSIZE, 0, 0, 0, 0, > hWnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL); > > /*hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, > WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, > hWnd, (HMENU)ID_TOOLBAR, hInst, NULL);*/ > > // create image List > hImglBtn = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK , 4, 1); > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDR_TOOLBAR1), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > // use transperacy > ImageList_AddMasked(hImglBtn, hBtn, RGB(255, 255, 255)); > DeleteObject(hBtn); // Kill image object > > // create image List Hot Bar > /*hImglBtnHot = ImageList_Create(24, 22, ILC_COLOR32 | ILC_MASK , 4, 1); > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_TOOLBARHOT), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > // use transperacy > ImageList_AddMasked(hImglBtnHot, hBtn, RGB(255, 0, 255)); > DeleteObject(hBtn); // Kill image object*/ > > // Attach the image lists to the window handler > SendMessage(hWndTB, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImglBtn); > //SendMessage(hWndTB, TB_SETHOTIMAGELIST, (WPARAM)0, (WPARAM)hImglBtnHot); > > // button 1 properties > tbb[0].iBitmap = 0; // Array of picture to show > tbb[0].idCommand = 0; > tbb[0].fsState = TBSTATE_ENABLED; // button status > tbb[0].fsStyle = TBSTYLE_BUTTON; // button style > tbb[0].dwData = 0; > tbb[0].iString = 0; > tbb[0].idCommand=ID_FICHIER_OUVRIR; // button identifier > > // button 2 properties > tbb[1].iBitmap = 1; > tbb[1].idCommand = 0; > tbb[1].fsState = TBSTATE_ENABLED; > tbb[1].fsStyle = TBSTYLE_BUTTON; > tbb[1].dwData = 0; > tbb[1].iString = 0; > tbb[1].idCommand=ID_FICHIER_ENREGISTRERSOUS; > > // seperator properties > tbb[2].iBitmap = 0; > tbb[2].idCommand = 0; > tbb[2].fsState = TBSTATE_ENABLED; > tbb[2].fsStyle = TBSTYLE_SEP; > tbb[2].dwData = 0; > tbb[2].iString = 0; > > // button 4 properties > tbb[3].iBitmap = 2; > tbb[3].idCommand = 0; > tbb[3].fsState = TBSTATE_ENABLED; > tbb[3].fsStyle = TBSTYLE_BUTTON; > tbb[3].dwData = 0; > tbb[3].iString = 0; > tbb[3].idCommand=ID_FICHIER_QUITTER; > > // button 5 properties > tbb[4].iBitmap = 3; > tbb[4].idCommand = 0; > tbb[4].fsState = TBSTATE_ENABLED; > tbb[4].fsStyle = TBSTYLE_BUTTON; > tbb[4].dwData = 0; > tbb[4].iString = 0; > tbb[4].idCommand=ID__APROPOS; > > // Add the buttons > SendMessage(hWndTB, TB_ADDBUTTONS, (WPARAM)5, (LPARAM)(LPTBBUTTON)&tbb); // add buttons > // Auto Disable buttons on startup > /*SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_PE_EDITOR, (LPARAM)FALSE); // Disable Buttons > SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_SAVE_DISASM, (LPARAM)FALSE); // at first run*/ > > // Kill image object > DeleteObject(hBtn); > > // Return tool bar window handler > return hWndTB; > } > >
|
|
lundi 31 mars 2003 à 14:52:42 |
Re : Toolbar et Tooltip

superpa
|
On a beau critiquer MFC, c'est quand même plus simple à utiliser pour les bulles d'aides et pour la barre d'outils...
A bientôt, P-A
------------------------------- Réponse au message : -------------------------------
> J'ai fait un copier depuis un exemple que j'ai fait pour un autre. Te suffit adapter les idc_xxx. Tu recup WM_NOTIFY dans ta wndProc(), ici je ne verifie pas qui arrive car un seul emetteur possible, si tu as plusieurs controles pouvant emettre WM_NOTIFY alors regarde le hwndFrom. > > case WM_NOTIFY: > switch (((LPNMHDR) lParam)->code) { > case TTN_NEEDTEXT: > LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT) lParam; > switch(lpttt->hdr.idFrom) { > case IDC_TOOL_NEWCATEG: > lpttt->lpszText = "Crée nouvelle catégorie"; break; > case IDC_TOOL_DELCATEG: > lpttt->lpszText = "Supprime catégorie courante"; break; > case IDC_TOOL_NEWURL: > lpttt->lpszText = "Crée nouveau lien"; break; > case IDC_TOOL_DELURL: > lpttt->lpszText = "Supprime lien sélectionné"; break; > case IDC_TOOL_F1: > lpttt->lpszText = "Aide du logiciel"; break; > case IDC_TOOL_ABOUT: > lpttt->lpszText = "A propos de..."; break; > case IDC_TOOL_QUIT: > lpttt->lpszText = "Fermeture logiciel"; break; > } > } > return 0; > BruNews, ciao... > > > ------------------------------- > Réponse au message : > ------------------------------- > > > Bonjour, j'ai creer une toolbar de la facon suivante, et j'aimerai creer des tooltips pour les boutons de cette toolbar > > Comment faire? > > HWND CreateToolBar(HWND hWnd, HINSTANCE hInst) > > { > > HIMAGELIST hImglBtn;//, hImglBtnHot; // Toolbar images handlers > > TBBUTTON tbb[5]; // Button struct for tool bar > > static HWND hWndTB; // Toolbar window handler > > HBITMAP hBtn; // bitmaps handle > > > > // begin ToolBar window creation > > hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TBSTYLE_TOOLTIPS | TBSTYLE_AUTOSIZE, 0, 0, 0, 0, > > hWnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL); > > > > /*hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, > > WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, > > hWnd, (HMENU)ID_TOOLBAR, hInst, NULL);*/ > > > > // create image List > > hImglBtn = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK , 4, 1); > > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDR_TOOLBAR1), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > > // use transperacy > > ImageList_AddMasked(hImglBtn, hBtn, RGB(255, 255, 255)); > > DeleteObject(hBtn); // Kill image object > > > > // create image List Hot Bar > > /*hImglBtnHot = ImageList_Create(24, 22, ILC_COLOR32 | ILC_MASK , 4, 1); > > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_TOOLBARHOT), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > > // use transperacy > > ImageList_AddMasked(hImglBtnHot, hBtn, RGB(255, 0, 255)); > > DeleteObject(hBtn); // Kill image object*/ > > > > // Attach the image lists to the window handler > > SendMessage(hWndTB, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImglBtn); > > //SendMessage(hWndTB, TB_SETHOTIMAGELIST, (WPARAM)0, (WPARAM)hImglBtnHot); > > > > // button 1 properties > > tbb[0].iBitmap = 0; // Array of picture to show > > tbb[0].idCommand = 0; > > tbb[0].fsState = TBSTATE_ENABLED; // button status > > tbb[0].fsStyle = TBSTYLE_BUTTON; // button style > > tbb[0].dwData = 0; > > tbb[0].iString = 0; > > tbb[0].idCommand=ID_FICHIER_OUVRIR; // button identifier > > > > // button 2 properties > > tbb[1].iBitmap = 1; > > tbb[1].idCommand = 0; > > tbb[1].fsState = TBSTATE_ENABLED; > > tbb[1].fsStyle = TBSTYLE_BUTTON; > > tbb[1].dwData = 0; > > tbb[1].iString = 0; > > tbb[1].idCommand=ID_FICHIER_ENREGISTRERSOUS; > > > > // seperator properties > > tbb[2].iBitmap = 0; > > tbb[2].idCommand = 0; > > tbb[2].fsState = TBSTATE_ENABLED; > > tbb[2].fsStyle = TBSTYLE_SEP; > > tbb[2].dwData = 0; > > tbb[2].iString = 0; > > > > // button 4 properties > > tbb[3].iBitmap = 2; > > tbb[3].idCommand = 0; > > tbb[3].fsState = TBSTATE_ENABLED; > > tbb[3].fsStyle = TBSTYLE_BUTTON; > > tbb[3].dwData = 0; > > tbb[3].iString = 0; > > tbb[3].idCommand=ID_FICHIER_QUITTER; > > > > // button 5 properties > > tbb[4].iBitmap = 3; > > tbb[4].idCommand = 0; > > tbb[4].fsState = TBSTATE_ENABLED; > > tbb[4].fsStyle = TBSTYLE_BUTTON; > > tbb[4].dwData = 0; > > tbb[4].iString = 0; > > tbb[4].idCommand=ID__APROPOS; > > > > // Add the buttons > > SendMessage(hWndTB, TB_ADDBUTTONS, (WPARAM)5, (LPARAM)(LPTBBUTTON)&tbb); // add buttons > > // Auto Disable buttons on startup > > /*SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_PE_EDITOR, (LPARAM)FALSE); // Disable Buttons > > SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_SAVE_DISASM, (LPARAM)FALSE); // at first run*/ > > > > // Kill image object > > DeleteObject(hBtn); > > > > // Return tool bar window handler > > return hWndTB; > > } > > > > >
|
|
lundi 31 mars 2003 à 15:12:36 |
Re : Toolbar et Tooltip

BruNews
|
oui sans mfc, SEMBLE + difficile, mais a la finale c'est faux. Quand on sait faire, alors tout est permis, ce qui n'est pas le cas de mfc ou il faudra appeler API native pour faire ce qui n'est pas fourni. Resultat mfc + API a apprendre. 1 seule me suffit. BruNews, ciao...
------------------------------- Réponse au message : -------------------------------
> On a beau critiquer MFC, c'est quand même plus simple à utiliser pour les bulles d'aides et pour la barre d'outils... > > A bientôt, > P-A > > > ------------------------------- > Réponse au message : > ------------------------------- > > > J'ai fait un copier depuis un exemple que j'ai fait pour un autre. Te suffit adapter les idc_xxx. Tu recup WM_NOTIFY dans ta wndProc(), ici je ne verifie pas qui arrive car un seul emetteur possible, si tu as plusieurs controles pouvant emettre WM_NOTIFY alors regarde le hwndFrom. > > > > case WM_NOTIFY: > > switch (((LPNMHDR) lParam)->code) { > > case TTN_NEEDTEXT: > > LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT) lParam; > > switch(lpttt->hdr.idFrom) { > > case IDC_TOOL_NEWCATEG: > > lpttt->lpszText = "Crée nouvelle catégorie"; break; > > case IDC_TOOL_DELCATEG: > > lpttt->lpszText = "Supprime catégorie courante"; break; > > case IDC_TOOL_NEWURL: > > lpttt->lpszText = "Crée nouveau lien"; break; > > case IDC_TOOL_DELURL: > > lpttt->lpszText = "Supprime lien sélectionné"; break; > > case IDC_TOOL_F1: > > lpttt->lpszText = "Aide du logiciel"; break; > > case IDC_TOOL_ABOUT: > > lpttt->lpszText = "A propos de..."; break; > > case IDC_TOOL_QUIT: > > lpttt->lpszText = "Fermeture logiciel"; break; > > } > > } > > return 0; > > BruNews, ciao... > > > > > > ------------------------------- > > Réponse au message : > > ------------------------------- > > > > > Bonjour, j'ai creer une toolbar de la facon suivante, et j'aimerai creer des tooltips pour les boutons de cette toolbar > > > Comment faire? > > > HWND CreateToolBar(HWND hWnd, HINSTANCE hInst) > > > { > > > HIMAGELIST hImglBtn;//, hImglBtnHot; // Toolbar images handlers > > > TBBUTTON tbb[5]; // Button struct for tool bar > > > static HWND hWndTB; // Toolbar window handler > > > HBITMAP hBtn; // bitmaps handle > > > > > > // begin ToolBar window creation > > > hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TBSTYLE_TOOLTIPS | TBSTYLE_AUTOSIZE, 0, 0, 0, 0, > > > hWnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL); > > > > > > /*hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, > > > WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, > > > hWnd, (HMENU)ID_TOOLBAR, hInst, NULL);*/ > > > > > > // create image List > > > hImglBtn = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK , 4, 1); > > > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDR_TOOLBAR1), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > > > // use transperacy > > > ImageList_AddMasked(hImglBtn, hBtn, RGB(255, 255, 255)); > > > DeleteObject(hBtn); // Kill image object > > > > > > // create image List Hot Bar > > > /*hImglBtnHot = ImageList_Create(24, 22, ILC_COLOR32 | ILC_MASK , 4, 1); > > > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_TOOLBARHOT), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > > > // use transperacy > > > ImageList_AddMasked(hImglBtnHot, hBtn, RGB(255, 0, 255)); > > > DeleteObject(hBtn); // Kill image object*/ > > > > > > // Attach the image lists to the window handler > > > SendMessage(hWndTB, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImglBtn); > > > //SendMessage(hWndTB, TB_SETHOTIMAGELIST, (WPARAM)0, (WPARAM)hImglBtnHot); > > > > > > // button 1 properties > > > tbb[0].iBitmap = 0; // Array of picture to show > > > tbb[0].idCommand = 0; > > > tbb[0].fsState = TBSTATE_ENABLED; // button status > > > tbb[0].fsStyle = TBSTYLE_BUTTON; // button style > > > tbb[0].dwData = 0; > > > tbb[0].iString = 0; > > > tbb[0].idCommand=ID_FICHIER_OUVRIR; // button identifier > > > > > > // button 2 properties > > > tbb[1].iBitmap = 1; > > > tbb[1].idCommand = 0; > > > tbb[1].fsState = TBSTATE_ENABLED; > > > tbb[1].fsStyle = TBSTYLE_BUTTON; > > > tbb[1].dwData = 0; > > > tbb[1].iString = 0; > > > tbb[1].idCommand=ID_FICHIER_ENREGISTRERSOUS; > > > > > > // seperator properties > > > tbb[2].iBitmap = 0; > > > tbb[2].idCommand = 0; > > > tbb[2].fsState = TBSTATE_ENABLED; > > > tbb[2].fsStyle = TBSTYLE_SEP; > > > tbb[2].dwData = 0; > > > tbb[2].iString = 0; > > > > > > // button 4 properties > > > tbb[3].iBitmap = 2; > > > tbb[3].idCommand = 0; > > > tbb[3].fsState = TBSTATE_ENABLED; > > > tbb[3].fsStyle = TBSTYLE_BUTTON; > > > tbb[3].dwData = 0; > > > tbb[3].iString = 0; > > > tbb[3].idCommand=ID_FICHIER_QUITTER; > > > > > > // button 5 properties > > > tbb[4].iBitmap = 3; > > > tbb[4].idCommand = 0; > > > tbb[4].fsState = TBSTATE_ENABLED; > > > tbb[4].fsStyle = TBSTYLE_BUTTON; > > > tbb[4].dwData = 0; > > > tbb[4].iString = 0; > > > tbb[4].idCommand=ID__APROPOS; > > > > > > // Add the buttons > > > SendMessage(hWndTB, TB_ADDBUTTONS, (WPARAM)5, (LPARAM)(LPTBBUTTON)&tbb); // add buttons > > > // Auto Disable buttons on startup > > > /*SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_PE_EDITOR, (LPARAM)FALSE); // Disable Buttons > > > SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_SAVE_DISASM, (LPARAM)FALSE); // at first run*/ > > > > > > // Kill image object > > > DeleteObject(hBtn); > > > > > > // Return tool bar window handler > > > return hWndTB; > > > } > > > > > > > > >
|
|
lundi 17 janvier 2005 à 12:02:22 |
Re : Toolbar et Tooltip

Kikx
|
Merci ce bou de code m'aide bien Kikx

|
|
Cette discussion est classée dans : button, toolbar, tbb, hwndtb, idcommand
Répondre à ce message
Sujets en rapport avec ce message
Toolbar [ par GregPeck ]
Salut a tous,J'ai un problème qui commence a me gaver...Je suis en train de programmer une toolbar pour IE (sous Vc++ 6) et j'ai un soucis pour rajou
grayed toolbar button? [ par nahs ]
Bonjours,Comment faire pour griser un bouton du toolbar et pour griser un item du menu contextuelle c'est à dire du menu qui apparé lorsqu'on clic sur
Dessiner une icone sur un toolbar [ par gagah1 ]
Comment dessine une icône ou un bitmap sur un bouton de ToolBar ,à part les 15 boutons standard prédéfinis.
Affichages une toolbar sur la même "ligne" qu'une autre [ par tkrys ]
Salut! Petite question urgente...Je suis entrain de coder un prog sur lequelle la fenêtre principale dispose de deux toolbars (l'une a côté de l'autre
toolbar sans mfc [ par Arkko ]
slt ... est-ce quelquun connait un moyen de faire une toolbar sans les mfc (pas la "statique") celle quon peut deplacer et quand elle est pas colle su
toolbar pour un prog OpenGL [ par LocksCash ]
Voila, le truc en fait c que je prog une application de visualmisation 3D. J'utilise glut et gl pour la 3D et glui pour le fenetrage mais le problème
DRAWITEMSTRUCT owner draw button avec bmp ki change [ par youpiyoyo ]
j'aimerai k'un button owner draw change de bitmap kan la sourie pass dessus j'ai testé ca et également avec ODS_SELECTEDmais j'arrive po au résultat e
Ajouter une toolbar dans outlook express [ par marcjr ]
Je suis à la recherche d'un exemple ou d'information pour ajouter une toolbar dans outlook express en C++.Marcjr
Radio Button en PAS MFC [ par sebseb42 ]
salut,je voudrais pouvoir definir et recuperer l'etat de mes boutons radio dans une fenetre, le tout uniquement en API Win32 svpmerci d'avance pour vo
CComboboxEx dans une toolbar [ par drak_ ramore ]
Bonjour, je n'arrive pas à recupperer la valeur selectionnée dans la comboboxex. Elle a été construite de cette maniere :m_wndToolBar.SetButtonInfo(16
Livres en rapport
|
Derniers Blogs
UNE JOLIE-HORLOGE ET PAS QU'UN PEU !UNE JOLIE-HORLOGE ET PAS QU'UN PEU ! par neodante
Pour les possesseurs d'iPhone, ça y est Bijin Tokei - qui se traduit littéralement en Français par " Jolie Horloge " - est arrivé et GRATUITEMENT s'il vous plaît ! Après la version Tokyo, Hokkaido, night club, racing, Gal, "pour les mademoiselles'", . voi...
Cliquez pour lire la suite de l'article par neodante TECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICESTECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICES par ROMELARD Fabrice
Animé par: Gaetan Bouveret et Julien Chomarat Business Connectivity Services (BCS) est dans SharePoint 2010 la version 2 de Business Data Catalog (BDC dans SharePoint 2007). Il s'agit de la solution permettant de visualiser des données provenan...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE[DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE par orion
Comme de nombreux geek, je suis un grand amateur de série TV et je rate régulièrement des épisodes de mes séries préférés. Une solution s'offre à vous avec ce merveilleux site : Tv Gorge - www.tvgorge.com Moteur de recherche à l'appui, vous pouvez ...
Cliquez pour lire la suite de l'article par orion TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Vincent Bellet et Baptiste Giraudier La BI dans SharePoint 2010, Les nouveaux services d'application dans SP2010 et SQL Server Reporting services 2008 R2. La BI dans SharePoint est généralisée pour tous afin de permettre à tous les coll...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Forum
RE : WIN APIRE : WIN API par racpp
Cliquez pour lire la suite par racpp WIN APIWIN API par omarino_007
Cliquez pour lire la suite par omarino_007
Logiciels
DB-MAIN (9.1.0)DB-MAIN (9.1.0)DB-MAIN is a data-modeling and data-architecture tool. It is designed to help developers and anal... Cliquez pour télécharger DB-MAIN Xilisoft DPG Convertisseur (5.1.37.0120)XILISOFT DPG CONVERTISSEUR (5.1.37.0120)Xilisoft DPG Convertisseur offre aux fans de Nintendo DS une bonne solution leur permettant de dé... Cliquez pour télécharger Xilisoft DPG Convertisseur GraphicsGale (2.01.01)GRAPHICSGALE (2.01.01)GraphicsGale est un logiciel de PixelArt avec de nombreuse fonctionnalités permettant de réalisé ... Cliquez pour télécharger GraphicsGale Architecte 3D (Platinum 2010)ARCHITECTE 3D (PLATINUM 2010)Architecte 3D Platinium vous permet de concevoir facilement les plans votre future maison, de l'é... Cliquez pour télécharger Architecte 3D TeamViewer 5 (TeamViewer 5)TEAMVIEWER 5 (TEAMVIEWER 5)Dépanner un ami,expliquer une manipulation devient un jeu d'enfant.
Prise en main d'un autre ord... Cliquez pour télécharger TeamViewer 5
|