| 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?
|
Posted: Wed Jan 28, 2009 11:07 pm Post subject: GUI Not Being Drawn |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Thu Jan 29, 2009 9:31 am Post subject: |
|
|
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 |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Thu Jan 29, 2009 10:50 am Post subject: |
|
|
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 |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Thu Jan 29, 2009 5:53 pm Post subject: |
|
|
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 |
|
 |
yoyonerd Grandmaster Cheater
Reputation: 0
Joined: 26 Apr 2008 Posts: 699 Location: -->formerly yoyonerd<--
|
Posted: Mon Feb 02, 2009 5:04 pm Post subject: |
|
|
how did u fix it?
it would be useful for the rest of the community _________________
|
|
| Back to top |
|
 |
angerist Grandmaster Cheater Supreme
Reputation: 0
Joined: 18 Jun 2007 Posts: 1011 Location: Australia.
|
Posted: Sun Feb 08, 2009 12:42 am Post subject: |
|
|
Share your method of fixing it. _________________
|
|
| Back to top |
|
 |
|