RE: [preview] Voicemail 1.0
Hmmm... my code works without any glitches here though (incl. with skins).
I don't know why it wont work with you. There is no reason why it wouldn't work since it is essentially just a MoveWindow/SetWindowPos call. It might indicate something else is wrong on your system maybe?
Haven't tested your code yet, but personally and at first sight I think I would replace the SetWindowPos API with the MoveWindow API because SetWindowPos (at least like you used it) also activates the window and there might also be other Windows messages it might not send which MoveWindow does (iirc SetWindowsPos is just a subset of what MoveWindow actually does). But this is just a personal pref though.
But what I realy would do is to remove the GetWindowRec API from the timer event function in your code, and move it to the 'start shaking' function. Because getting the size each time is kind of useless in the timer event since it never changes (the same for the position; it doesn't change if you don't rely on the 'moved' position, but instead rely on the original position of the window). And each call to an API takes time too, so...
But all this said, I don't think it would fix the issue you're having though. :/
This post was edited on 04-24-2011 at 06:42 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|