Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Marissa182

@Marissa182
About
Posts
45
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Windows Xp Style Buttons
    M Marissa182

    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

    C / C++ / MFC question

  • debug vs release
    M Marissa182

    i 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

    C / C++ / MFC help visual-studio data-structures debugging question

  • implement resizing code on "Kodak Image Edit ActiveX Control"???
    M Marissa182

    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

    C / C++ / MFC com help c++ database graphics

  • debug vs release
    M Marissa182

    im not using any dlls other than the mfc dll that gets built into the app

    C / C++ / MFC help visual-studio data-structures debugging question

  • implement resizing code on "Kodak Image Edit ActiveX Control"???
    M Marissa182

    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

    C / C++ / MFC com help c++ database graphics

  • debug vs release
    M Marissa182

    i 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

    C / C++ / MFC help visual-studio data-structures debugging question

  • debug vs release
    M Marissa182

    hi 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

    C / C++ / MFC help visual-studio data-structures debugging question

  • arrow keys PLEASE HELP!!
    M Marissa182

    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

    C / C++ / MFC help question

  • Arrow keys
    M Marissa182

    i 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

    C / C++ / MFC

  • Arrow keys
    M Marissa182

    im 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

    C / C++ / MFC

  • dialog scroll bars!!!
    M Marissa182

    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

    C / C++ / MFC tutorial question

  • dialog scroll bars
    M Marissa182

    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 thanks

    C / C++ / MFC question

  • dialog scroll bars
    M Marissa182

    Hi 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?

    C / C++ / MFC tutorial question

  • tool bars
    M Marissa182

    Add 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

    C / C++ / MFC tutorial question

  • Language question: accessing union members
    M Marissa182

    just use an overloded operatoer FILETIME operator-(FILETIME &ft, FILETIME &ft1);

    C / C++ / MFC question performance

  • how to add a delay in program
    M Marissa182

    maybe 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

    C / C++ / MFC tutorial

  • comma operator
    M Marissa182

    im talking about where semi colons are used like this void main() { function(), function2(), function3(); }

    C / C++ / MFC performance question

  • comma operator
    M Marissa182

    how 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?

    C / C++ / MFC performance question

  • file extensions
    M Marissa182

    Hi 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

    C / C++ / MFC help

  • Tray Icons
    M Marissa182

    Hi 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?

    C / C++ / MFC linux question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups