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 


GUI Not Being Drawn

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Jan 28, 2009 11:07 pm    Post subject: GUI Not Being Drawn Reply with quote

In an application I'm making the the GUI isn't being drawn. All the controls are drawn, just not the window itself. I saw there was a warning while it was compiling main.cpp and this is what it was:

Quote:

------ Build started: Project: IBIM Transfer, Configuration: Debug Win32 ------
Compiling...
main.cpp
c:\documents and settings\oib\my documents\visual studio 2008\projects\ibim transfer\ibim transfer\main.cpp(124) : warning C4715: 'WindowProcedure' : not all control paths return a value
Linking...


The confusing thing is is that on line 124 I'm declaring my WinMain function and it has nothing to do with WindowProcedure.

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jan 28, 2009 11:49 pm    Post subject: Reply with quote

Source?

Also: http://msdn.microsoft.com/en-us/library/6deaf4k9(VS.80).aspx
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Jan 29, 2009 9:31 am    Post subject: Reply with quote

So I have a function that potentially won't return a value in my WindowProcedure function?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Thu Jan 29, 2009 10:50 am    Post subject: Reply with quote

You're probably missing a return XXX after your switch? Right before the closing brace.

Quote:

LRESULT CALLBACK WindowProcedure ( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{

switch( uMsg )
{
case ...:
...
...
break;

case ...:
...
...
break;

case ...:
...
...
break;

default:
return DefWindowProc ( hwnd, uMsg, wParam, lParam );
}

return FALSE;
}
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Jan 29, 2009 5:53 pm    Post subject: Reply with quote

No I had that, and the mods can close this thread I fixed it.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
yoyonerd
Grandmaster Cheater
Reputation: 0

Joined: 26 Apr 2008
Posts: 699
Location: -->formerly yoyonerd<--

PostPosted: Mon Feb 02, 2009 5:04 pm    Post subject: Reply with quote

how did u fix it?

it would be useful for the rest of the community

_________________
Back to top
View user's profile Send private message AIM Address
angerist
Grandmaster Cheater Supreme
Reputation: 0

Joined: 18 Jun 2007
Posts: 1011
Location: Australia.

PostPosted: Sun Feb 08, 2009 12:42 am    Post subject: Reply with quote

Share your method of fixing it.
_________________
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