Hi i just tested my program on windows xp and its got the old style buttons how do i change them to xp style buttons? im using msvc 6.0
Marissa182
Posts
-
Windows Xp Style Buttons -
debug vs releasei tried to enable debuging for relase but im not sure i did it right i went in and clicked the enable debugging checkbox in the settings but when i went to debug it said disabling breakpoints program will break at the beggings of execution i guess i must have missed something when trying to turn on debugging
-
implement resizing code on "Kodak Image Edit ActiveX Control"???well first off when dynamicly creating the kodak thing just do this frame->GetWindowRect(&rect); kodak->MoveWindow(&rect); that way you ensure the kodak is the the same size as the frame on creation you may want to adjust the size slightly its up to you you could either inherate the frame class and overload its OnLButtonClk message or just use your windows message and use GetCursorPos and just test if its within the frame window and around the permiter then on the OnMouseMove do some work while the user is trying to resize thier thing and then finaly do your resizing in OnLButtonUp also you can do this without the frame and just use the kodak thing where you would use the frame although i think the frame gives your control something easier to stick to also if you didnt know you can get your kodak control in functions were its not in scope by doing GetDlgItem(ID_KODAK) same with the frame control
-
debug vs releaseim not using any dlls other than the mfc dll that gets built into the app
-
implement resizing code on "Kodak Image Edit ActiveX Control"???im no expert but you might try adding a regular frame around it and then capture rightclicks and hold on the frame and test if its at the edge where someone would do the dragging and then calculate the change in distance when the person releases the mouse and resize your control accordingly also make sure the frame is also resized also. with a frame you can add things like a sunken or modal border wich also makes it nice to use so you could represent the border with something like a modal border to give the user a visual cue that the control is resizable this idea is probably the most basic and there could be other ways you could do this but thats my suggestion
-
debug vs releasei have not altered the release or debug settings at all and anyways i dont understand how changing release settings would affect the execution of code the has proven it works in debug also there are no #ifdef _DEBUG or whatever in any of the drag/drop code for the tree view
-
debug vs releasehi im a little confused i have drag and drop code for a tree view in debug mode it works perfectly it drops the item where its supposed to be dropped however when the code is used in release mode the tree just drops it in the root node of the tree i know im being vague here but i really have no clue where the bug could be since you can't debug while in release mode :P does anyone have any clue how i could track down this iregularity ? any help or any suggestions would be very helpfull thanks Marissa
-
arrow keys PLEASE HELP!!Why doesnt my program recive them the messages seem to go straigh to the toolbar i have tried to map OnKeyUp OnKeyDown OnChar all at once and non work here is the code im using for all 3 of them void DlgMapEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) { switch(nChar) { case VK_UP: curr_room.y -= 1; MessageBox("Key Up OnChar"); break; case VK_DOWN: curr_room.y += 1; break; case VK_LEFT: curr_room.x -= 1; break; case VK_RIGHT: curr_room.x += 1; break; } UpdateDisplay(); CDialog::OnChar(nChar, nRepCnt, nFlags); } the code for all 3 is relitivly the same but it doesnt even get to the message box so whats the deal is there something special i have to do? when i hit the arrow keys it moves around the selected button on the toolbar and i dont want that :P i also tried to use OnSysKeyUp OnSysKeyDown and OnSysKeyChar but none of them work it all goes to the toolbar SOMEONE PLEASE HELP!!!!! thanks
-
Arrow keysi have a grid of images and only one can be selected so i want to move the selection box around with the arrow keys im catching the key input in the main dialog i tried both ways and neither worked thanks
-
Arrow keysim wondering how i map these i tried OnChar and OnKeyUp and OnKeyDown but non of them do what i tell them to do instead it just moved the selected button on the tool bar i have here is the code i have for all 3 messages switch(nChar) { case VK_UP: curr_room.y -= 1; break; case VK_DOWN: case VK_LEFT: case VK_RIGHT: break; } as you can see its imcomplete the but VK_UP doesnt even work how i want it can someone tell me the proper way to get these keys to do work for me thanks
-
dialog scroll bars!!!Hi i have a dialog box where i have enabled the scroll bars by using the horizontal and vertical scroll bar check boxes in the dialog properties box my question is how do actualy get the scroll bars so i can control them etc im not able to give them an id so im not sure what thier ids are thats all i need to know how to get thanks
-
dialog scroll barsHi i have a dialog box where i have enabled the scroll bars by using the horizontal and vertical scroll bar check boxes in the dialog properties box my question is how do actualy get the scroll bars so i can control them etc thanks
-
dialog scroll barsHi i am wondering how to work the scroll bars in a dialog box that were enabled through the dialog editor by selecting horizontal scroll and vscroll i cant figure out how becuase i cant edit thier properties with the dialog editor is there some special way to acess these?
-
tool barsAdd a toolbar data member to your dialog class then in oninitdlg m_Tool.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC ); create your toolbar then right after that call RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0); and that should do it
-
Language question: accessing union membersjust use an overloded operatoer FILETIME operator-(FILETIME &ft, FILETIME &ft1);
-
how to add a delay in programmaybe you want to use SetTimer SetTimer(TIMER_ID, time); Then just set up a message handler to check for TIMER_ID and do what you want in that message i think there are a few samples somewhere on this site :P
-
comma operatorim talking about where semi colons are used like this void main() { function(), function2(), function3(); }
-
comma operatorhow come the comma operator isnt used more often i was able to write a whole function using 1 semi color at the end so how come people dont use the commas? is there a performance reason or somethting?
-
file extensionsHi Im wondering how i can associate certain file extension to my program and have it run the program when the person opens a file with that extension any help is appreciated thanks
-
Tray IconsHi i have a dialog based app and im trying to add a tray icon i can get the icon to display but whenever you move the mouse into the tray it dissapears here is the code i have for it niData is stored in the class and is zeroed in the constructor void CWinDEDlg::InitTrayIcon() { niData.cbSize = sizeof(NOTIFYICONDATA); niData.uID = TRAY_ID; niData.uFlags = NIF_ICON|NIF_MESSAGE|NIF_TIP; niData.hIcon = (HICON)m_hIcon; niData.hWnd = (HWND)this; niData.uCallbackMessage = ICON_MESSAGE; Shell_NotifyIcon(NIM_ADD, &niData); } does anyone know why the icon just dissapears?