Repaint after you maximize or minimize frame

Hi all
Can anyone tell me how I repaint after i have maximize frame
using the maximize or minimize button ??
My Frame is not repainting right
Thanks for any help
Craig

Hi all
Can anyone tell me how I repaint after i have
maximize frame
using the maximize or minimize button ??
My Frame is not repainting right
Thanks for any help
CraigThis is not a simple repaint problem since repaint() is done automatically whenever you resize() a frame. I think we would need to see some code and to have an explanation of what it should do and what it does not do.

Similar Messages

  • Why CreateNewFrame() returns as NULL after successful created 136 child frame window and trying to create 137th child frame window in MDI application

    I am working on MDI application which was developed in VC++ in VS 2012. When my application is launched, it will display a Tree. Under a tree there are 254 nodes. Basically
    these nodes data are read from Configuration xml file and loaded into the Tree. By double clicking on each node, first it will create object for document class ( By calling CreateNewDocument() method) after that member variables for that
    document class will be initialized and then it will create the new frame window (by calling
    CreateNewFrame(pDoc,NULL). New child frame window will show under Main window to the user.
    User able to see the data from child frame window.
    Similarly by double clicking on each node it will create another object for the same document class and new child frame window will be opened for that node. Each child frame window runs
    in different data and showed under the Main window.
    Existing requirement by double clicking on each node, node data shall show in separate child window and there is no requirement for all 254 child windows opened simultaneously.
    But current requirement is , all 254 child windows shall open simultaneously by double clicking on each node one by one.
    In debug mode I have tried double clicking on each node. I able to open up to 50 nodes. After 50th child windows are opened, I unable to access to the application
    (Unable to open further node data window since application is getting hanged).
    Each child window is having tree, multiple splitter window and some additional controls (static text, ...).
    Same I have tried in release mode, I able to open up to 136 child windows. After that the application fail to create the new frame window in VS 2012. i.e CreateNewFrame() return
    NULL after successful created 136 child frame window. Debug purpose I have added the code to retrieve last error code by calling GetLastError() method. I got the value as "0". By closing any existing child window then I able to open remaining nodes.
    At any point of time I can reach maximum of 136 child frame window that can be opened under Main window. Failing to open all 254 child frame window
    simultaneously,  currently I fail to meet the current requirement.
    current Requirement is all 254 child frame window are opened simultaneously. Please let me know what may be the reason fail to create new frame window after 136 frame window that are
    opened already. In Microsoft site, mentioned that there is no limitation for creating frame  window in MDI application. I have tried another sample MDI application having limited number of controls, in which I able to create "n"
    number of child frame windows. why not able to create more than 136 child frame window in my actual application?
    Is there any possibility by changing project settings allow me to create 254 child frame window??
    Code Snippet as below:
    CDiagBaseDoc * CDiagBaseMDocTemplate::OpenDiagView( ...)
         CDiagBaseDoc* pDoc = NULL;
        if (pDoc == NULL)
            pDoc = (CDiagBaseDoc*)CreateNewDocument();
        if ( pDoc )
           CFrameWnd* pFrame = NULL;
           if (bAlreadyOpen)
                  // If Child frame window already opened, then handling the code here.
         else
               pFrame = CreateNewFrame(pDoc, NULL);
               if (pFrame == NULL)
                  ASSERT(FALSE);
                  delete pDoc;       // explicit delete on error
                 pDoc = NULL;
              ASSERT_VALID(pFrame);
              if( pDoc != NULL ) //VS2012
                 if ( !pDoc->OnNewDocument() )
                    TRACE0("CDocument::OnNewDocument returned FALSE\n");
                    delete pDoc;       // explicit delete on error
                    pDoc = NULL;
                    pFrame->DestroyWindow();
                     pFrame = NULL;
           if (pFrame)
               InitialUpdateFrame(pFrame, pDoc);
               ShowWindow( pFrame->GetSafeHwnd(), SW_MAXIMIZE ); //when opening node for the 1st time, maximize it
    }<o:p></o:p>

    Hi MuruganK,
    Have you checked how much memory your application used? You could check it by Task Manager. Maybe your application reach Memory Limits for Windows.
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    Is it possible that there are some memory leaks in your application? It would better if you have made a simple sample to reproduce and narrow down this issue.
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to change default close maximize and minimize button in mac?

    How can I change default close, maximize and minimize button in mac?

    no. but you can make resizable.

  • Maximize and minimize an application

    Hello,
    I`m trying to make an application and i need to be able to maximize and minimize other applications too.
    For example minimize and maximize Firefox. Could you provide me with an example how can i control other applications and minimize/maximize them? I tryed google it for like 1 hour with now luck..
    Really sorry if i didn't looked that good and someone found the answer on google.
    Cheers

    DarrylBurke wrote:
    Could you provide me with an example how can i control other applicationsJava is not suitable for this.
    dbWe i didn't ment to say "Control", My bad.
    I`m working on a anti-hack for a game and want to check if game is minimized or maximized.
    I`m trying to work arround with JNI but maybe there is other way.
    Cheers

  • Cannnot exit firefox, maximize or minimize without clearing history. Also cannot adjust desired time on videos such as fast foward, rewind or maximize screen.

    Firefox started acting weird like this two days ago. Like I said, videos are being made to be watched all the way from the start with no option to adjust desired time, as well as the top right X esc button on the firefox browser, maximize and minimize will not work as well until the history is cleared. I just reset firefox and it is still having the same complications. Also before, I was able to center click the mouse wheel to open new tabs and thus it is not working any more. All help is greatly appreciated.

    Update your Shockwave Flash '''v14. http://get.adobe.com/shockwave/'''
    The link for Flash Player is: '''http://get.adobe.com/flashplayer/'''
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Press the '''Alt''' or '''F10''' key to bring up the tool bar.
    Followed by;
    Windows; '''Tools > Options'''
    Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?. Then restart.

  • Help how do you save a still frame of video  as a photo?

    Help how do you save a still frame of video as a photo? Thanks

    A still frame from an Event:
    Put cursor at the frame you want, then right click (or command click) and select "Add Still Frame to Project".
    The still frame will be added at the end of the Project.
    A still frame from a Project:
    Put cursor at the frame you want then right-click (or control-click) and select "Add Freeze Frame". The Freeze frame will be added after the clip.
    In both cases:
    Select the still frame (so the yellow band is around it).
    Right-click (or control-click) and select "Reveal in Finder".
    You will see a JPG file highlighted in the finder.
    Drag this file and drop it on your iPhoto icon in the Dock.

  • After using modify/contents some frames go out of stage dimension

    Hello,
    I have a question to all you animators out there.
    I work in after effects and sometimes do some simple illustrations/animations in flash - where I usually switch the bg colour to gray
    as not to see the stage rectangular as it's distracting to me. Then when I have my drawings and a few different frames done I go to
    modify/ choose bg colour to white and check contents to frame all the content inside the document - then I want to export it to swf
    so I can use it in after effects.
    At this point all seems fine, all the frames are in place, however I noticed that frequently when I reopen my flash documet after having done this some frames are outside
    the white stage box (usually later frames, the 1st is in place).
    How do you deal with this?

    Hi all,
    Sorry for the slow response - as I'm sure you can understand, running lots of exports takes a few days and so it's taken me a while to test your suggestions properly.
    The render completes using the media encoder without crashing (MPEG2 Blu-ray and H.264 Blue Ray both worked), however the picture quality has really blurred:
    Original:
    MPEG2 Blu-Ray
    I also ran it in H.264 Blur-ray and this also appeared blurry. Apologies for lack of a screenshot, I deleted the export to conserve disk space.
    This is very similar to the problems I had under File => Export => Movie, which went away after I tweeked the export settings to match as closely as possible the footage (however Premiere then crashed when I tried to export the entire movie rather than just a clip).
    Working settings under File => Export which crashed Premiere but prevented the blurriness:
    Export
    Video and audio
    Entire Sequence
    Filetype
    QuickTime
    Video Settings
    Compressor: H.264
    Frame size: 1280h 720v (1.000)
    Frame rate: 29.97 frames/second
    Pixel Aspect Ratio: Square Pixels (1.0)
    Fields: No Fields (Progressive Scan)
    Audio Settings
    Compressor: Uncompressed
    Sample rate: 48000 samples/second
    Channels: Stereo
    Sample type: 16-bit
    Settings under Adobe Media Encoder
    Any thoughts what I'm doing wrong? This is starting to get really frustrating and I'm genuinely wondering if Premiere is suitable for what I'm trying to do. I've another project a month late in getting started because I want to get Premiere to export this so I know I'm not going to run into the same problems again - but I really don't know what else to try? Any ideas?

  • I need to create buttons in which the color changes, and stays on after you release the button

    I need to create buttons in which the color changes, and stays on after you release the button. The hard part is the buttons must change independently of each other.
    To get an idea of some of things I’ve tried I’ve tried making the movie with two frames.
    When I click the button it switched to the new frame which would show a movie clip,
    Unfortunately all buttons would change color together and don’t see how to make it so that they change independently.

    you must use movieclip buttons and code for their frame changes.

  • Keyboad short cut to maximize and minimize windows

    Hi All
    We are running forms 10g R2 as a separate frame. How do we set up shortcut keys to maximize and minimize windows. To simulate the effect of pressing the square icon on the top right corner. This is key to our user's productivity. Any immediate help is greatly appreciated.
    Rgds
    Arvind

    When I want to get at the desktop with lots of windows open I use expose. The F11 key, or the 4 finger swipe upward will do it (assuming this is enabled via System Preferences).
    charlie

  • After Effects CC - Export Still Frame

    Hi,
    I have recently upgraded to CC. I am trying to export still frames as a jpg from After Effects CC
    CS 5.5 (and previous versions) allowed me to use the shortcut ctrl+alt+s to add the current frame to the render queue as a still frame.  I would then change the format via the output module.
    The same shortcut in CC opens a dialogue box with psd as the only available output format. Composition> Save Frame As > File... also results in psd format with no other options.
    Is there a simillar simple process for exporting a still frame jpg via the render queue?
    Thanks in adavance

    scott_travers wrote:
    There does seem to be some unnecessary changes.
    However i have resolved this myself, if you click ok on the dialogue box and except the psd format, it adds it to the render quene where you can then change the format. No idea why there aren't any other options in the 'Save as File...' option, only PSD.
    This is the expected behavior when you have never rendered a comp from a newly installed version of AE. It's worked this way since at least AE 6.5 (the oldest version I have installed on a nearby computer to compare). The output module needs to have a destination for the file, so when you invoke the Save Frame As File command for the first time it brings up the Save As dialog. For the same reason, if you were to add a comp to the Render Queue directly it won't allow you to render until you set a destination.
    After the first time you create a output module with a destination, AE will remember the last-used location and use that by default without asking you. The only time you should it would ask you again is if you destroy AE's preferences or if the last-used location is no longer valid (deleted folder, disconnected drive, etc.).
    The reason the only selectable format here is PSD is because that is what the default OM for Save Frame As File uses. You can, and should, change this if you always use a different format. Go to Edit > Templates > Output Module . Create a new template with your desired settings and assign it to Frame Default.

  • SharePoint 2013 RTE Custom Styles lost on Team Site Wiki Page after you select a control in the editor

    I have a weird issue in that I have custom RTE styles working fine in publishing pages, but in the team site wiki page, when you first go into edit mode you see your styles, but if you highlight some text, select say the font drop down to expand it and then
    select it again to contract it (i.e. without selecting a font), all of a sudden all of the custom styles are lost and everything reverts back to the default RTE styles.
    In my master page I am running the following script to force my styles to be loaded.
    ExecuteOrDelayUntilScriptLoaded(
    function() {
         $(
    "div[RteRedirect]").each(function()
    varid = $(this).attr("RteRedirect"),
             editSettings = $(
    "#"+ id);
    if(editSettings.length > 0 &&
    editSettings[0].PrefixStyleSheet != 'custom-rte')
                 editSettings[0][
    'PrefixStyleSheet'] =
    'custom-rte';
                 editSettings[0][
    'StyleSheet'] =
    '\u002f_layouts\u002f15\u002fFiveP\u002frteStyles.css';
                 RTE.Canvas.fixRegion(id,
    false);
    "sp.ribbon.js");
    See below screenshots (note Heading 2 is orange).
    After you collapse the font menu, you see that the orange H2 has disappeared, and selecting the font drop down again now shows all of the default SharePoint RTE styles.
    I haven't been able to capture the Event that is being called using the debugger. Any ideas how to fix this?
    Alan Coulter.

    Hi,
    For this issue, I'm trying to involve someone familiar with this topic to further look at it.
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • HT5429 How long after you report a problem does it take for the fix to be picked up in maps?

    How long after you report a problem does it take for the fix to be picked up in maps? The street I live on is misspelled. It's shown as one word, but it should be two words. Maps cannot find the address when it is spelled correctly, so I have it purposely misspelled it as one word in my contacts, which helps for the most part, however it still tries to place my home on an entirely different street all together. Fortunately this new random street is at least close to where I live. When I used to spell my street correctly with two words, maps would try to send me to the next town over. So it kind of works, as long as I misspell my street, and ignore the fact that it is showing where I live to be a couple of streets down from where I actually live. I live in Connecticut - not in the most populated of areas, but not in the middle of nowhere either. Amazingly enough Google Maps will correctly find my address whether it's spelled with one words or two words. Google Maps also shows my apartment complex, which Apple Maps does not. I really wish Apple would just do a quick pass of the area to fix these issues. I’ve reported the problem several times, months ago. How long will it take for there to be a fix? I keep trying to use the Apple ecosystem, but Google is clearly the better solution for me.

    Apple does not do the GIS data for maps. That comes from 3rd party vendors like Tom Tom. I have read it takes some time to update map data. The only thing you can do is report it.
    Not to belittle your complaint, but on my end it is Apple that is clearly better. When looking at my house in Google, the satellite photo is more than 4 years old, and the Apple one is much newer. I can tell because of the condition of my home and the neighbor's. They had an above ground pool which was removed 4 years ago and it shows on the Google Map. I had remodeling and roof work done to my home that started 3 years ago and Apple's satellite view showed this work done, which took over a year to complete. I live in the middle of a block in a rural town. Both Apple and Google split the block into 100 parts and put my home close to the beginning of the block instead of where it actually sits. I've reported it to both Google and Apple and no one has changed. Just one of those things. But, keep your chin up, it will get corrected eventually.

  • Is there a way to get the songs back after you do a sync and erase? I no longer have them stored on my harddrive.

    Thanks to a wonderful geeksquad agent all my songs have been deleted from my ipod. They had to restore my computer so the ones I downloaded are no longer on my harddrive or in itunes. Is there a way to get the songs back after you do a sync and erase?

    If they are on the iPod there are third-party programs that will transfer then to  a computer. See:
    Copy music from Ipod to new computer...: Apple Support Communities
    If they ae not on either the iPOd or the computer they are gone.

  • I am unable to install extensions, they show up with "will be installed after you restart Firefox" even after I restart.

    Hi,
    I am unable to install extensions, they show up with "will be installed after you restart Firefox" even after I restart.
    The "Staged" folder is present and remains after a restart, but the extensions do not get installed. They show in the extensions page with the "will be installed after you restart Firefox" message and remain like this no matter how many times I restart.
    Any Idea's?
    Running Firefox 24.0 on Windows 8.1
    Many Thanks,
    BD
    P.S. Just tried to install the "troubleshooter" add-on before posting the question and I got an error saying it cannot install because it cannot modify the needed file. (I did it manually instead)

    It is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the extensions.* files (e.g. extensions.sqlite, extensions.ini) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled or not compatible extensions in "Firefox/Tools > Add-ons > Extensions" then click the Tools button at the left end side of the Search Bar to check if there is a compatibility update available.
    If this hasn't helped then also delete the addons.sqlite file.

  • How do you add a Christmas frame to an image in Elements 10?

    How do you add a Christmas frame to an image in Elements 10?

    In PSE 10, go to Full Edit mode. 
    Open your image.
    Open the Content panel.
    In the first dropdown choose "By Event".
    In the second dropdown choose Christmas.

Maybe you are looking for