Win 3.0 applications ?? *he he* we\'ve moved up a few versions since then ... maybe they changed it ? Buut, I can\'t see why they should or why they would\'ve done so.
tdaugaard> sorry for misinforming you! I have also looked at help and it does look as though you shouldnt save it in a variable, but even so they show examples where they pass hWnd to other functions (By Value) so what happens if it changes in the mean time? What is it you are trying to do?
I know .. and well DC\'s are also stored from time to time. Like if you want to get a DC from a window by specifying it\'s screen coordinates you use WindowFromPoint() to get its hWnd .. that\'s one stored. And then GetDC(hwnd) to get its DC .. that\'s another one stored ..
As cellanous quotes \"can change while\" .. it CAN ...
Anyway, I\'m trying to make a program that\'ll help one align their floating ICQ users side by side. ICQ uses some f*cked up wierd move routines that doesn\'t align by pixel but a few off.
ja jeg ville altså også bare gemme det i en variabel hvis jeg var dig :-)
faktisk slog jeg det mest op for at se om det var en double eller en long.
du kan jo lave en errorhandler som siger at icq har foretaget en generel beskyttelsesfejl :-P så mistænker ingen dit program hvis en hwnd skulle ha ændret sig?
cellanous:> gør jeg også ;o) Windåse ska sku ik bestemme her *hi hi* Windows/API arbejder ALTID i Long\'s.
Well ... problemet er jo at jeg flytter de floating \"vinduer\" med SetWindowPos() så hvis den får fat i et forkert hWnd så flytter den måske et forkert vindue *G*
Nå anyway, det er kun til privat b¨rug så det går nok ;o)
*G* det jo det ... men indtil videre laver jeg det sådan at hWnd\'s bliver gemt i max. 1 min .. or so ...
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.