Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


tab controls

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Jan 02, 2010 6:35 pm    Post subject: tab controls Reply with quote



so i made a dialog and then put a tab control inside it. then i create another dialog setting it as a child to the tab control. i had originally sized it so the tab control was just large enough to fit the child inside. for some reason the child dialog is now being drawn not at the start of the tab control. i worked with tab controls in the past and i never had to mess around with positioning of it, the children always just went straight to the top left. any ideas ?

i can fix it with setwindowpos() but i'm curious why it's suddenly decided to place itself there
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Jan 03, 2010 11:12 am    Post subject: Reply with quote

never mind, found the solution. sillyyyyyy Neutral
Back to top
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sun Jan 03, 2010 11:16 am    Post subject: Reply with quote

Slugsnack wrote:
never mind, found the solution. sillyyyyyy Neutral

So... what was the solution? Cuz I've also had trouble with tab controls and had to use SetWindowPos.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Jan 03, 2010 11:52 am    Post subject: Reply with quote

loooll my resource editor messed up the start coordinates ( left and top ) for my child dialog hahahahahah

Back to top
View user's profile Send private message
S3NSA
:3
Reputation: 1

Joined: 06 Dec 2006
Posts: 1908
Location: England.

PostPosted: Mon Jan 04, 2010 8:36 pm    Post subject: Reply with quote

Slugsnack, you should know to use EnableThemeDialogTexture when creating tab children windows!

I don't mind giving you a quick master-class as and when you might need it, if you'd like that.

_________________
~ You can find me on irc.ccplz.net x
Back to top
View user's profile Send private message Visit poster's website
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Jan 04, 2010 8:45 pm    Post subject: Reply with quote

S3NSA wrote:
Slugsnack, you should know to use EnableThemeDialogTexture when creating tab children windows!

I don't mind giving you a quick master-class as and when you might need it, if you'd like that.

Nice try at being a smart ass but actually the reason for that colour issue is I had some redundant code left over whereby the WM_INITDIALOG of the child tried to make itself partially transparent with the following code:

Code:
            invoke GetWindowLong, hwndDlg, GWL_EXSTYLE
         or eax, WS_EX_LAYERED
            invoke SetWindowLong, hwndDlg, GWL_EXSTYLE, eax
            invoke SetLayeredWindowAttributes, hwndDlg, NULL, 220, LWA_ALPHA


Again, S3NSA, nice try being a smartass.

lol, just lol
Back to top
View user's profile Send private message
S3NSA
:3
Reputation: 1

Joined: 06 Dec 2006
Posts: 1908
Location: England.

PostPosted: Mon Jan 04, 2010 8:50 pm    Post subject: Reply with quote

Nice try at covering your ass but you're actually supposed to use EnableThemeDialogTexture on tab children windows because it adjusts accordingly (applies the child window with the same texture as the theme's tab pane) and that's the only way you're supposed to do it. You can see this clearly in your screenshots, because the tab control's background & tab pane are both white whilst the child window has a grey background which is static. (presumably COLOR_BTNFACE or something to that effect).

Again, Slugsnack, nice try at covering your ass.

_________________
~ You can find me on irc.ccplz.net x
Back to top
View user's profile Send private message Visit poster's website
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Jan 04, 2010 8:58 pm    Post subject: Reply with quote

S3NSA wrote:
Nice try at covering your ass but you're actually supposed to use EnableThemeDialogTexture on tab children windows because it adjusts accordingly (applies the child window with the same texture as the theme's tab pane) and that's the only way you're supposed to do it. You can see this clearly in your screenshots, because the tab control's background & tab pane are both white whilst the child window has a grey background which is static. (presumably COLOR_BTNFACE or something to that effect).

Again, Slugsnack, nice try at covering your ass.

I find it hilarious how it's clear you're running around being x0r's bitch since you can't program for shit. You're so clever, only coming here for PHP help from Void, Flyte-backup and x0r tips. Next time I want to beautify my GUI I'll just call Flyte a bad name and see you appear !

The application is designed for Windows Server 2003 with the themes services disabled. Nice try assuming shit. Also inb4ulying
Back to top
View user's profile Send private message
S3NSA
:3
Reputation: 1

Joined: 06 Dec 2006
Posts: 1908
Location: England.

PostPosted: Mon Jan 04, 2010 9:08 pm    Post subject: Reply with quote

I find it amusing you find the need to type in such small type, are you brain-dead enough to think I can't see it? Perhaps you just like playing around with BBCode and think it's clever. Either way, you're assuming I can't program. The problem you have is that you know little to nothing about me, so you have to provide unfounded assumptions and then run around afterwards trying to substantiate them. You've done it many times in the past and it's quite a bad habit. Also, retard, I didn't come here to get PHP help from void, I came asking for PHP help from a trustworthy member and he happened to respond. There's a distinct difference.

Anyway, onto the topic at hand..

Let me get this right - first you lied about why there was a colour issue which you claimed to have fixed now you're saying that this was coded for Windows Server 2003 with uxtheme disabled? So, this begs the question - why did you "fix" the colour problem?

Another note, when uxtheme is disabled EnableThemeDialogTexture simply does nothing. Aren't you the one who has repeatedly spoke on code portability? Why would you choose to neglect any other system with uxtheme enabled?

_________________
~ You can find me on irc.ccplz.net x
Back to top
View user's profile Send private message Visit poster's website
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Jan 04, 2010 9:24 pm    Post subject: Reply with quote

S3NSA wrote:
I find it amusing you find the need to type in such small type, are you brain-dead enough to think I can't see it? Perhaps you just like playing around with BBCode and think it's clever. Either way, you're assuming I can't program. The problem you have is that you know little to nothing about me, so you have to provide unfounded assumptions and then run around afterwards trying to substantiate them. You've done it many times in the past and it's quite a bad habit. Also, retard, I didn't come here to get PHP help from void, I came asking for PHP help from a trustworthy member and he happened to respond. There's a distinct difference.

Anyway, onto the topic at hand..

lol, just lol
> SPECIALMOVEBLOCKATTACKS

S3NSA wrote:
Let me get this right - first you lied about why there was a colour issue which you claimed to have fixed now you're saying that this was coded for Windows Server 2003 with uxtheme disabled? So, this begs the question - why did you "fix" the colour problem?

Uhhh you do realise that transparency, ie. layered windows, has nothing to do with themes, right ?

http://img189.imageshack.us/img189/1716/74099127.png

Yep, looks pretty fucking transparent to me with the visual styles disabled.

S3NSA wrote:
Another note, when uxtheme is disabled EnableThemeDialogTexture simply does nothing. Aren't you the one who has repeatedly spoke on code portability? Why would you choose to neglect any other system with uxtheme enabled?

You can not apply a generalisation to every single situation. In this case it is an exception because I know the application will only ever be used by one person on one specific platform.

And before you apply your pedantic nature to the visual styles that I enabled, that is only for test cases. It pisses me off to see the window without the style. Every time I compile for the end user I simply comment out the one line stating a manifest on my resource file.

Pretty sure it's not a master-class I need to give you, I have a feeling a beginner-class might kill you from over-exertion.
Back to top
View user's profile Send private message
S3NSA
:3
Reputation: 1

Joined: 06 Dec 2006
Posts: 1908
Location: England.

PostPosted: Mon Jan 04, 2010 9:43 pm    Post subject: Reply with quote

Slugsnack wrote:
lol, just lol
> SPECIALMOVEBLOCKATTACKS

Typical of you, as soon as someone forms a written rebuttal which makes logical sense and debunks your own, you avoid it. I must say though, I'm surprised you haven't mentioned Imperial yet, usually you use any excuse to put it out there. Well done.


Slugsnack wrote:
Uhhh you do realise that transparency, ie. layered windows, has nothing to do with themes, right ?

http://img189.imageshack.us/img189/1716/74099127.png

Yep, looks pretty fucking transparent to me with the visual styles disabled.

Uh.. you do realize that visual styles are not disabled in that screenshot, right? All you've done is opt to use an older version of Windows' common control library. Fact of the matter is you're too unintelligible to distinguish the difference between the disabling of uxtheme and using an older version of commctrl.

Also, that's not transparent, you're simply using a static background colour which happens to match the tab pane's colour.

Slugsnack wrote:
You can not apply a generalisation to every single situation. In this case it is an exception because I know the application will only ever be used by one person on one specific platform.

And before you apply your pedantic nature to the visual styles that I enabled, that is only for test cases. It pisses me off to see the window without the style. Every time I compile for the end user I simply comment out the one line stating a manifest on my resource file.

Pretty sure it's not a master-class I need to give you, I have a feeling a beginner-class might kill you from over-exertion.

That's bullshit. You're basically attempting to excuse bad code by saying you're the only who uses the resulting program. You're slacking on support for themes out of a sheer lack of knowledge & high degree of laziness.

Also, as said earlier, you haven't disabled visual styles in the screenshot you posted, all you've done is opt to use an older version of commctrl. That's nowhere near the same thing as disabling visual styles (uxtheme) altogether.

Given that you don't know what the manifest you're including does I think a beginner's programming class would be too much, I'm starting to think a primer on how Windows works would be the best idea for you.

_________________
~ You can find me on irc.ccplz.net x
Back to top
View user's profile Send private message Visit poster's website
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Jan 04, 2010 9:54 pm    Post subject: Reply with quote

S3NSA wrote:
Uh.. you do realize that visual styles are not disabled in that screenshot, right? All you've done is opt to use an older version of Windows' common control library. Fact of the matter is you're too unintelligible to distinguish the difference between the disabling of uxtheme and using an older version of commctrl.

Read this carefully. Yes, that applies to you too, x0r. Come back when you've finished reading.

S3NSA wrote:
Also, that's not transparent, you're simply using a static background colour which happens to match the tab pane's colour.

http://msdn.microsoft.com/en-us/library/ms633540(VS.85).aspx

Quote:
The SetLayeredWindowAttributes function sets the opacity and transparency color key of a layered window.

I fucking lol'd. Could it be any more clear ? Clearly you're finding transparency a hard concept to grasp.

S3NSA wrote:
Slugsnack wrote:
You can not apply a generalisation to every single situation. In this case it is an exception because I know the application will only ever be used by one person on one specific platform.

And before you apply your pedantic nature to the visual styles that I enabled, that is only for test cases. It pisses me off to see the window without the style. Every time I compile for the end user I simply comment out the one line stating a manifest on my resource file.

Pretty sure it's not a master-class I need to give you, I have a feeling a beginner-class might kill you from over-exertion.

That's bullshit. You're basically attempting to excuse bad code by saying you're the only who uses the resulting program. You're slacking on support for themes out of a sheer lack of knowledge & high degree of laziness.

Also, as said earlier, you haven't disabled visual styles in the screenshot you posted, all you've done is opt to use an older version of commctrl. That's nowhere near the same thing as disabling visual styles (uxtheme) altogether.

Given that you don't know what the manifest you're including does I think a beginner's programming class would be too much, I'm starting to think a primer on how Windows works would be the best idea for you.

Go up, read, come back, grovel. I'm only gonna say it once, although no doubt you'll keep pushing your incorrect point.

And yes, since you want to hear it so badly :
The Arts University College at Bournemouth sucks cock

----------------------------------------------

Final point, I find it ironic you should tell me I don't know how Windows works. You try to tell me EnableThemeDialogTexture() does nothing when uxtheme is disabled. However, it seems pretty fucking clearly documented to me that UxTheme.lib should not be directly linked but loaded on demand.

Kind sir, you are clearly missing something staring you in the face. I would hope something this simple would be obvious.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Jan 04, 2010 11:38 pm    Post subject: Reply with quote

Is it possible for you to not spiral a discussion into a shitstorm?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites